00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _C_PROTOCOLEXTERNALFRAME_H
00021 #define _C_PROTOCOLEXTERNALFRAME_H
00022
00023
00024
00025 #include "C_ProtocolFrame.hpp"
00026 #include "C_MsgBuildContext.hpp"
00027 #include "C_MsgBuildContextFactory.hpp"
00028 #include "ReceiveMsgContext.h"
00029
00030
00031 class C_ProtocolExternalFrame : public C_ProtocolFrame {
00032
00033 public:
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044 C_ProtocolExternalFrame() { m_type = E_PROTOCOL_EXTERNAL; } ;
00045 virtual ~C_ProtocolExternalFrame() {} ;
00046
00047 virtual T_MsgError from_external (C_MsgBuildContext* P_build,
00048 T_pReceiveMsgContext P_Ctx) = 0 ;
00049 virtual T_MsgError to_external (C_MsgBuildContext* P_build,
00050 C_MessageFrame *P_msg) = 0 ;
00051
00052 virtual C_MsgBuildContextFactory* get_factory() = 0 ;
00053
00054 virtual void log_message (char *P_header, C_MessageFrame *P_msg) = 0 ;
00055
00056 protected:
00057 private:
00058
00059 } ;
00060
00061 typedef C_ProtocolExternalFrame *T_pC_ProtocolExternalFrame ;
00062
00063 #endif // _C_PROTOCOLEXTERNALFRAME_H
00064
00065