version_Negotiation_m.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //
  2. // Generated file, do not edit! Created by nedtool 5.2 from Packets/version_Negotiation.msg.
  3. //
  4. #if defined(__clang__)
  5. # pragma clang diagnostic ignored "-Wreserved-id-macro"
  6. #endif
  7. #ifndef __VERSION_NEGOTIATION_M_H
  8. #define __VERSION_NEGOTIATION_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>Packets/version_Negotiation.msg:19</tt> by nedtool.
  17. * <pre>
  18. * //
  19. * // TODO generated message class
  20. * //
  21. * packet Version_Negotiation
  22. * {
  23. * string versions;
  24. * }
  25. * </pre>
  26. */
  27. class Version_Negotiation : public ::omnetpp::cPacket
  28. {
  29. protected:
  30. ::omnetpp::opp_string versions;
  31. private:
  32. void copy(const Version_Negotiation& other);
  33. protected:
  34. // protected and unimplemented operator==(), to prevent accidental usage
  35. bool operator==(const Version_Negotiation&);
  36. public:
  37. Version_Negotiation(const char *name=nullptr, short kind=0);
  38. Version_Negotiation(const Version_Negotiation& other);
  39. virtual ~Version_Negotiation();
  40. Version_Negotiation& operator=(const Version_Negotiation& other);
  41. virtual Version_Negotiation *dup() const override {return new Version_Negotiation(*this);}
  42. virtual void parsimPack(omnetpp::cCommBuffer *b) const override;
  43. virtual void parsimUnpack(omnetpp::cCommBuffer *b) override;
  44. // field getter/setter methods
  45. virtual const char * getVersions() const;
  46. virtual void setVersions(const char * versions);
  47. };
  48. inline void doParsimPacking(omnetpp::cCommBuffer *b, const Version_Negotiation& obj) {obj.parsimPack(b);}
  49. inline void doParsimUnpacking(omnetpp::cCommBuffer *b, Version_Negotiation& obj) {obj.parsimUnpack(b);}
  50. #endif // ifndef __VERSION_NEGOTIATION_M_H