#ifndef MSGCAPSULE_H_ #define MSGCAPSULE_H_ #include #include #include #include "glob/ProxyMag.h" using namespace std; class MsgCapsule:public SingletonTemplate { friend class SingletonTemplate; protected: MsgCapsule(){}; public: /********************************************************************** * 概述: //提交要发送的接口数据 * 函数名: PrepareMsg * 返回值: int //TODO:返回值描述 * 参数列表: 参数类型 取值范围 描述 * * 版本历史 * 1.0 2011-09-22 Wei Shengyu //TODO请添加本次主要修改内容 * **********************************************************************/ virtual int PrepareMsg( const ::std::string& proxyname, ::Ice::Int eventNo, const ::Ice::ByteSeq& seq, ::Ice::Int length); /********************************************************************** * 概述: //提交要发送的接口数据 * 函数名: PrepareMsg * 返回值: int //TODO:返回值描述 * 参数列表: 参数类型 取值范围 描述 * * 版本历史 * 1.0 2011-09-22 Wei Shengyu //TODO请添加本次主要修改内容 * **********************************************************************/ virtual int PrepareMsg( const ::std::string& proxyname, ::Ice::Int eventNo, const ::Ice::ByteSeq& seq, ::Ice::Int length, const ::std::string& sender, const ::std::string& reciver, const ::std::string& aditional); /********************************************************************** * 概述: //清空发送数据 * 函数名: ClearMsg * 返回值: int //TODO:返回值描述 * 参数列表: 参数类型 取值范围 描述 * * 版本历史 * 1.0 2011-09-22 Wei Shengyu //TODO请添加本次主要修改内容 * **********************************************************************/ virtual void ClearMsg(); /********************************************************************** * 概述: //发送数据 * 函数名: LaunchMsg * 返回值: int //TODO:返回值描述 * 参数列表: 参数类型 取值范围 描述 * * 版本历史 * 1.0 2011-09-22 Wei Shengyu //TODO请添加本次主要修改内容 * **********************************************************************/ virtual int LaunchMsg(); private: class CAstronaut { public: CAstronaut(){}; ~CAstronaut(){}; public: ::std::string proxyname; ::Ice::Int eventNo; ::Ice::ByteSeq seq; ::Ice::Int length; int flag; /* extend data flag */ ::std::string sender; ::std::string reciver; ::std::string aditional; }; vector m_astr; }; #endif