| EventStudio 2.5 Sequence diagram based system design and modeling | |
00001 00002 00003 00004 00005 00006 00007 00008 00009 #ifndef PROTOCOL_LAYER_H 00010 #define PROTOCOL_LAYER_H 00011 00012 #include <stdio.h> 00013 class Protocol_Packet; 00014 00031 00032 class Protocol_Layer 00033 { 00038 Protocol_Layer *m_p_Lower_Layer; 00039 00044 Protocol_Layer *m_p_Upper_Layer; 00045 00046 public: 00052 Protocol_Layer() 00053 { 00054 m_p_Lower_Layer = NULL; 00055 m_p_Upper_Layer = NULL; 00056 } 00057 00066 virtual void Transmit(Protocol_Packet *p_Packet) = 0; 00067 00076 virtual void Handle_Receive(Protocol_Packet *p_Packet) = 0; 00077 00085 void Set_Upper_Layer(Protocol_Layer *p_Layer) 00086 { m_p_Upper_Layer = p_Layer; } 00087 00095 00096 void Set_Lower_Layer(Protocol_Layer *p_Layer) 00097 { m_p_Lower_Layer = p_Layer; } 00098 00106 00107 Protocol_Layer *Get_Upper_Layer() const 00108 { return m_p_Upper_Layer; } 00109 00117 00118 Protocol_Layer *Get_Lower_Layer() const 00119 { return m_p_Lower_Layer; } 00120 00121 }; 00122 #endif
1.3.4 | |
| Copyright © 2000-2005 EventHelix.com Inc. All Rights Reserved. |