application_Close_m.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //
  2. // Generated file, do not edit! Created by nedtool 5.2 from Frames/application_Close.msg.
  3. //
  4. #if defined(__clang__)
  5. # pragma clang diagnostic ignored "-Wreserved-id-macro"
  6. #endif
  7. #ifndef __APPLICATION_CLOSE_M_H
  8. #define __APPLICATION_CLOSE_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/application_Close.msg:19</tt> by nedtool.
  17. * <pre>
  18. * //
  19. * // TODO generated message class
  20. * //
  21. * class Application_Close
  22. * {
  23. * uint8_t type = 3;
  24. * uint16_t error_Code;
  25. * uint16_t reason_Phrase_Length;
  26. * string reason_Phrase;
  27. * }
  28. * </pre>
  29. */
  30. class Application_Close : public ::omnetpp::cObject
  31. {
  32. protected:
  33. uint8_t type;
  34. uint16_t error_Code;
  35. uint16_t reason_Phrase_Length;
  36. ::omnetpp::opp_string reason_Phrase;
  37. private:
  38. void copy(const Application_Close& other);
  39. protected:
  40. // protected and unimplemented operator==(), to prevent accidental usage
  41. bool operator==(const Application_Close&);
  42. public:
  43. Application_Close();
  44. Application_Close(const Application_Close& other);
  45. virtual ~Application_Close();
  46. Application_Close& operator=(const Application_Close& other);
  47. virtual Application_Close *dup() const override {return new Application_Close(*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 uint16_t getError_Code() const;
  54. virtual void setError_Code(uint16_t error_Code);
  55. virtual uint16_t getReason_Phrase_Length() const;
  56. virtual void setReason_Phrase_Length(uint16_t reason_Phrase_Length);
  57. virtual const char * getReason_Phrase() const;
  58. virtual void setReason_Phrase(const char * reason_Phrase);
  59. };
  60. inline void doParsimPacking(omnetpp::cCommBuffer *b, const Application_Close& obj) {obj.parsimPack(b);}
  61. inline void doParsimUnpacking(omnetpp::cCommBuffer *b, Application_Close& obj) {obj.parsimUnpack(b);}
  62. #endif // ifndef __APPLICATION_CLOSE_M_H