new_Connection_Id_m.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //
  2. // Generated file, do not edit! Created by nedtool 5.2 from Frames/new_Connection_Id.msg.
  3. //
  4. #if defined(__clang__)
  5. # pragma clang diagnostic ignored "-Wreserved-id-macro"
  6. #endif
  7. #ifndef __NEW_CONNECTION_ID_M_H
  8. #define __NEW_CONNECTION_ID_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. // cplusplus {{
  16. #include <vector>
  17. typedef std::vector<uint64_t> SRT;
  18. // }}
  19. /**
  20. * Class generated from <tt>Frames/new_Connection_Id.msg:26</tt> by nedtool.
  21. * <pre>
  22. * class New_Connection_Id
  23. * {
  24. * uint8_t type = 11;
  25. * uint16_t sequence;
  26. * uint64_t connection_Id;
  27. * SRT stateless_Reset_Token;
  28. * }
  29. * </pre>
  30. */
  31. class New_Connection_Id : public ::omnetpp::cObject
  32. {
  33. protected:
  34. uint8_t type;
  35. uint16_t sequence;
  36. uint64_t connection_Id;
  37. SRT stateless_Reset_Token;
  38. private:
  39. void copy(const New_Connection_Id& other);
  40. protected:
  41. // protected and unimplemented operator==(), to prevent accidental usage
  42. bool operator==(const New_Connection_Id&);
  43. public:
  44. New_Connection_Id();
  45. New_Connection_Id(const New_Connection_Id& other);
  46. virtual ~New_Connection_Id();
  47. New_Connection_Id& operator=(const New_Connection_Id& other);
  48. virtual New_Connection_Id *dup() const override {return new New_Connection_Id(*this);}
  49. virtual void parsimPack(omnetpp::cCommBuffer *b) const override;
  50. virtual void parsimUnpack(omnetpp::cCommBuffer *b) override;
  51. // field getter/setter methods
  52. virtual uint8_t getType() const;
  53. virtual void setType(uint8_t type);
  54. virtual uint16_t getSequence() const;
  55. virtual void setSequence(uint16_t sequence);
  56. virtual uint64_t getConnection_Id() const;
  57. virtual void setConnection_Id(uint64_t connection_Id);
  58. virtual SRT& getStateless_Reset_Token();
  59. virtual const SRT& getStateless_Reset_Token() const {return const_cast<New_Connection_Id*>(this)->getStateless_Reset_Token();}
  60. virtual void setStateless_Reset_Token(const SRT& stateless_Reset_Token);
  61. };
  62. inline void doParsimPacking(omnetpp::cCommBuffer *b, const New_Connection_Id& obj) {obj.parsimPack(b);}
  63. inline void doParsimUnpacking(omnetpp::cCommBuffer *b, New_Connection_Id& obj) {obj.parsimUnpack(b);}
  64. #endif // ifndef __NEW_CONNECTION_ID_M_H