I3SessionMessage_m.h

Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.0 from applications/i3/i3Apps/I3SessionMessage.msg.
00003 //
00004 
00005 #ifndef _I3SESSIONMESSAGE_M_H_
00006 #define _I3SESSIONMESSAGE_M_H_
00007 
00008 #include <omnetpp.h>
00009 
00010 // opp_msgc version check
00011 #define MSGC_VERSION 0x0400
00012 #if (MSGC_VERSION!=OMNETPP_VERSION)
00013 #    error Version mismatch! Probably this file was generated by an earlier version of opp_msgc: 'make clean' should help.
00014 #endif
00015 
00016 // cplusplus {{ ... }} section:
00017 
00018 #include "I3Identifier.h"
00019 // end cplusplus
00020 
00021 
00022 
00035 enum SessionMsgType {
00036     PAYLOAD = 0,
00037     CHANGE_SESSION = 1,
00038     TRIGGER_CONFIRMATION = 2
00039 };
00040 
00052 class SessionMsg : public cPacket
00053 {
00054   protected:
00055     int type_var;
00056     double value_var;
00057     I3Identifier source_var;
00058 
00059     // protected and unimplemented operator==(), to prevent accidental usage
00060     bool operator==(const SessionMsg&);
00061 
00062   public:
00063     SessionMsg(const char *name=NULL, int kind=0);
00064     SessionMsg(const SessionMsg& other);
00065     virtual ~SessionMsg();
00066     SessionMsg& operator=(const SessionMsg& other);
00067     virtual SessionMsg *dup() const {return new SessionMsg(*this);}
00068     virtual void parsimPack(cCommBuffer *b);
00069     virtual void parsimUnpack(cCommBuffer *b);
00070 
00071     // field getter/setter methods
00072     virtual int getType() const;
00073     virtual void setType(int type_var);
00074     virtual double getValue() const;
00075     virtual void setValue(double value_var);
00076     virtual I3Identifier& getSource();
00077     virtual const I3Identifier& getSource() const {return const_cast<SessionMsg*>(this)->getSource();}
00078     virtual void setSource(const I3Identifier& source_var);
00079 };
00080 
00081 inline void doPacking(cCommBuffer *b, SessionMsg& obj) {obj.parsimPack(b);}
00082 inline void doUnpacking(cCommBuffer *b, SessionMsg& obj) {obj.parsimUnpack(b);}
00083 
00084 
00085 #endif // _I3SESSIONMESSAGE_M_H_

Generated on Tue Sep 8 17:26:53 2009 for OverSim by  doxygen 1.5.8