long_Header_m.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //
  2. // Generated file, do not edit! Created by nedtool 5.2 from Headers/long_Header.msg.
  3. //
  4. #if defined(__clang__)
  5. # pragma clang diagnostic ignored "-Wreserved-id-macro"
  6. #endif
  7. #ifndef __LONG_HEADER_M_H
  8. #define __LONG_HEADER_M_H
  9. #include <omnetpp.h>
  10. // nedtool version check
  11. #define MSGC_VERSION 0x0502
  12. #if (MSGC_VERSION!=OMNETPP_VERSION)
  13. # error Version mismatch! Probably this file was generated by an earlier version of nedtool: 'make clean' should help.
  14. #endif
  15. /**
  16. * Class generated from <tt>Headers/long_Header.msg:19</tt> by nedtool.
  17. * <pre>
  18. * //
  19. * // TODO generated message class
  20. * //
  21. * packet Long_Header
  22. * {
  23. * uint8_t type;
  24. * uint64_t CID;
  25. * uint32_t PN;
  26. * uint32_t version;
  27. * }
  28. * </pre>
  29. */
  30. class Long_Header : public ::omnetpp::cPacket
  31. {
  32. protected:
  33. uint8_t type;
  34. uint64_t CID;
  35. uint32_t PN;
  36. uint32_t version;
  37. private:
  38. void copy(const Long_Header& other);
  39. protected:
  40. // protected and unimplemented operator==(), to prevent accidental usage
  41. bool operator==(const Long_Header&);
  42. public:
  43. Long_Header(const char *name=nullptr, short kind=0);
  44. Long_Header(const Long_Header& other);
  45. virtual ~Long_Header();
  46. Long_Header& operator=(const Long_Header& other);
  47. virtual Long_Header *dup() const override {return new Long_Header(*this);}
  48. virtual void parsimPack(omnetpp::cCommBuffer *b) const override;
  49. virtual void parsimUnpack(omnetpp::cCommBuffer *b) override;
  50. // field getter/setter methods
  51. virtual uint8_t getType() const;
  52. virtual void setType(uint8_t type);
  53. virtual uint64_t getCID() const;
  54. virtual void setCID(uint64_t CID);
  55. virtual uint32_t getPN() const;
  56. virtual void setPN(uint32_t PN);
  57. virtual uint32_t getVersion() const;
  58. virtual void setVersion(uint32_t version);
  59. };
  60. inline void doParsimPacking(omnetpp::cCommBuffer *b, const Long_Header& obj) {obj.parsimPack(b);}
  61. inline void doParsimUnpacking(omnetpp::cCommBuffer *b, Long_Header& obj) {obj.parsimUnpack(b);}
  62. #endif // ifndef __LONG_HEADER_M_H