ping_m.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //
  2. // Generated file, do not edit! Created by nedtool 5.2 from Frames/ping.msg.
  3. //
  4. #if defined(__clang__)
  5. # pragma clang diagnostic ignored "-Wreserved-id-macro"
  6. #endif
  7. #ifndef __PING_M_H
  8. #define __PING_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>Frames/ping.msg:19</tt> by nedtool.
  17. * <pre>
  18. * //
  19. * // TODO generated message class
  20. * //
  21. * class Ping
  22. * {
  23. * uint8_t type = 7;
  24. * }
  25. * </pre>
  26. */
  27. class Ping : public ::omnetpp::cObject
  28. {
  29. protected:
  30. uint8_t type;
  31. private:
  32. void copy(const Ping& other);
  33. protected:
  34. // protected and unimplemented operator==(), to prevent accidental usage
  35. bool operator==(const Ping&);
  36. public:
  37. Ping();
  38. Ping(const Ping& other);
  39. virtual ~Ping();
  40. Ping& operator=(const Ping& other);
  41. virtual Ping *dup() const override {return new Ping(*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 uint8_t getType() const;
  46. virtual void setType(uint8_t type);
  47. };
  48. inline void doParsimPacking(omnetpp::cCommBuffer *b, const Ping& obj) {obj.parsimPack(b);}
  49. inline void doParsimUnpacking(omnetpp::cCommBuffer *b, Ping& obj) {obj.parsimUnpack(b);}
  50. #endif // ifndef __PING_M_H