INET Framework for OMNeT++/OMNEST
LinkStatePacket_m.h
Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.2 from networklayer/ted/LinkStatePacket.msg.
00003 //
00004 
00005 #ifndef _LINKSTATEPACKET_M_H_
00006 #define _LINKSTATEPACKET_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 "TED_m.h"
00018 // }}
00019 
00020 
00021 
00036 class LinkStateMsg : public ::cPacket
00037 {
00038   protected:
00039     TELinkStateInfo *linkInfo_var; // array ptr
00040     unsigned int linkInfo_arraysize;
00041     bool request_var;
00042     int command_var;
00043 
00044   private:
00045     void copy(const LinkStateMsg& other);
00046 
00047   protected:
00048     // protected and unimplemented operator==(), to prevent accidental usage
00049     bool operator==(const LinkStateMsg&);
00050 
00051   public:
00052     LinkStateMsg(const char *name=NULL, int kind=0);
00053     LinkStateMsg(const LinkStateMsg& other);
00054     virtual ~LinkStateMsg();
00055     LinkStateMsg& operator=(const LinkStateMsg& other);
00056     virtual LinkStateMsg *dup() const {return new LinkStateMsg(*this);}
00057     virtual void parsimPack(cCommBuffer *b);
00058     virtual void parsimUnpack(cCommBuffer *b);
00059 
00060     // field getter/setter methods
00061     virtual void setLinkInfoArraySize(unsigned int size);
00062     virtual unsigned int getLinkInfoArraySize() const;
00063     virtual TELinkStateInfo& getLinkInfo(unsigned int k);
00064     virtual const TELinkStateInfo& getLinkInfo(unsigned int k) const {return const_cast<LinkStateMsg*>(this)->getLinkInfo(k);}
00065     virtual void setLinkInfo(unsigned int k, const TELinkStateInfo& linkInfo);
00066     virtual bool getRequest() const;
00067     virtual void setRequest(bool request);
00068     virtual int getCommand() const;
00069     virtual void setCommand(int command);
00070 };
00071 
00072 inline void doPacking(cCommBuffer *b, LinkStateMsg& obj) {obj.parsimPack(b);}
00073 inline void doUnpacking(cCommBuffer *b, LinkStateMsg& obj) {obj.parsimUnpack(b);}
00074 
00075 
00076 #endif // _LINKSTATEPACKET_M_H_