INET Framework for OMNeT++/OMNEST
TrafGenPacket_m.h
Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.2 from ansa/TrafficGenerator/TrafGenPacket.msg.
00003 //
00004 
00005 #ifndef _TRAFGENPACKET_M_H_
00006 #define _TRAFGENPACKET_M_H_
00007 
00008 #include <omnetpp.h>
00009 
00010 // opp_msgc version check
00011 #define MSGC_VERSION 0x0402
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 {{
00017 #include "INETDefs.h"
00018 // }}
00019 
00020 
00021 
00033 class TrafGenPacket : public ::cPacket
00034 {
00035   protected:
00036     opp_string flowId_var;
00037     double sentTime_var;
00038     opp_string application_var;
00039 
00040   private:
00041     void copy(const TrafGenPacket& other);
00042 
00043   protected:
00044     // protected and unimplemented operator==(), to prevent accidental usage
00045     bool operator==(const TrafGenPacket&);
00046 
00047   public:
00048     TrafGenPacket(const char *name=NULL, int kind=0);
00049     TrafGenPacket(const TrafGenPacket& other);
00050     virtual ~TrafGenPacket();
00051     TrafGenPacket& operator=(const TrafGenPacket& other);
00052     virtual TrafGenPacket *dup() const {return new TrafGenPacket(*this);}
00053     virtual void parsimPack(cCommBuffer *b);
00054     virtual void parsimUnpack(cCommBuffer *b);
00055 
00056     // field getter/setter methods
00057     virtual const char * getFlowId() const;
00058     virtual void setFlowId(const char * flowId);
00059     virtual double getSentTime() const;
00060     virtual void setSentTime(double sentTime);
00061     virtual const char * getApplication() const;
00062     virtual void setApplication(const char * application);
00063 };
00064 
00065 inline void doPacking(cCommBuffer *b, TrafGenPacket& obj) {obj.parsimPack(b);}
00066 inline void doUnpacking(cCommBuffer *b, TrafGenPacket& obj) {obj.parsimUnpack(b);}
00067 
00068 
00069 #endif // _TRAFGENPACKET_M_H_