INET Framework for OMNeT++/OMNEST
GenericAppMsg_m.h
Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.2 from applications/tcpapp/GenericAppMsg.msg.
00003 //
00004 
00005 #ifndef _GENERICAPPMSG_M_H_
00006 #define _GENERICAPPMSG_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 
00034 class GenericAppMsg : public ::cPacket
00035 {
00036   protected:
00037     int expectedReplyLength_var;
00038     double replyDelay_var;
00039     bool serverClose_var;
00040 
00041   private:
00042     void copy(const GenericAppMsg& other);
00043 
00044   protected:
00045     // protected and unimplemented operator==(), to prevent accidental usage
00046     bool operator==(const GenericAppMsg&);
00047 
00048   public:
00049     GenericAppMsg(const char *name=NULL, int kind=0);
00050     GenericAppMsg(const GenericAppMsg& other);
00051     virtual ~GenericAppMsg();
00052     GenericAppMsg& operator=(const GenericAppMsg& other);
00053     virtual GenericAppMsg *dup() const {return new GenericAppMsg(*this);}
00054     virtual void parsimPack(cCommBuffer *b);
00055     virtual void parsimUnpack(cCommBuffer *b);
00056 
00057     // field getter/setter methods
00058     virtual int getExpectedReplyLength() const;
00059     virtual void setExpectedReplyLength(int expectedReplyLength);
00060     virtual double getReplyDelay() const;
00061     virtual void setReplyDelay(double replyDelay);
00062     virtual bool getServerClose() const;
00063     virtual void setServerClose(bool serverClose);
00064 };
00065 
00066 inline void doPacking(cCommBuffer *b, GenericAppMsg& obj) {obj.parsimPack(b);}
00067 inline void doUnpacking(cCommBuffer *b, GenericAppMsg& obj) {obj.parsimUnpack(b);}
00068 
00069 
00070 #endif // _GENERICAPPMSG_M_H_