| EventStudio 2.5 Sequence diagram based system design and modeling | |
00001 00002 00003 00004 00005 00006 00007 00008 00009 #ifndef PROTOCOL_STACK_H 00010 #define PROTOCOL_STACK_H 00011 00012 #include <stdio.h> 00013 00014 class Protocol_Packet; 00015 class Protocol_Layer; 00016 00035 00036 class Protocol_Stack 00037 { 00038 public: 00039 00041 enum Placement 00042 { 00043 TOP, 00044 ABOVE, 00045 BELOW 00046 }; 00047 00048 void Handle_Transmit(Protocol_Packet *p_Packet); 00049 void Handle_Receive(Protocol_Packet *p_Packet); 00050 00051 void Add_Layer(Protocol_Layer *p_Layer, Placement placement = TOP, Protocol_Layer *p_Existing_Layer = NULL); 00052 void Remove_Layer(Protocol_Layer *p_Layer); 00053 00054 Protocol_Stack(); 00055 00056 private: 00057 00061 Protocol_Layer *m_p_Highest_Layer; 00062 00066 Protocol_Layer *m_p_Lowest_Layer; 00067 }; 00068 #endif
1.3.4 | |
| Copyright © 2000-2005 EventHelix.com Inc. All Rights Reserved. |