// // Generated file, do not edit! Created by nedtool 5.4 from node/Packet.msg. // #if defined(__clang__) # pragma clang diagnostic ignored "-Wreserved-id-macro" #endif #ifndef __PACKET_M_H #define __PACKET_M_H #include // nedtool version check #define MSGC_VERSION 0x0504 #if (MSGC_VERSION!=OMNETPP_VERSION) # error Version mismatch! Probably this file was generated by an earlier version of nedtool: 'make clean' should help. #endif class Packet; /** * Class generated from node/Packet.msg:15 by nedtool. *
 * //
 * // Represents a packet in the network.
 * //
 * packet Packet
 * {
 *     int srcAddr \@packetData;
 *     int destAddr \@packetData;
 *     int hopCount \@packetData;
 * }
 * 
*/ class Packet : public ::omnetpp::cPacket { protected: int srcAddr = 0; int destAddr = 0; int hopCount = 0; private: void copy(const Packet& other); protected: // protected and unimplemented operator==(), to prevent accidental usage bool operator==(const Packet&); public: Packet(const char *name=nullptr, short kind=0); Packet(const Packet& other); virtual ~Packet(); Packet& operator=(const Packet& other); virtual Packet *dup() const override {return new Packet(*this);} virtual void parsimPack(omnetpp::cCommBuffer *b) const override; virtual void parsimUnpack(omnetpp::cCommBuffer *b) override; // field getter/setter methods virtual int getSrcAddr() const; virtual void setSrcAddr(int srcAddr); virtual int getDestAddr() const; virtual void setDestAddr(int destAddr); virtual int getHopCount() const; virtual void setHopCount(int hopCount); }; inline void doParsimPacking(omnetpp::cCommBuffer *b, const Packet& obj) {obj.parsimPack(b);} inline void doParsimUnpacking(omnetpp::cCommBuffer *b, Packet& obj) {obj.parsimUnpack(b);} #endif // ifndef __PACKET_M_H