connection_close_m.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //
  2. // Generated file, do not edit! Created by nedtool 5.2 from Frames/connection_close.msg.
  3. //
  4. #if defined(__clang__)
  5. # pragma clang diagnostic ignored "-Wreserved-id-macro"
  6. #endif
  7. #ifndef __CONNECTION_CLOSE_M_H
  8. #define __CONNECTION_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/connection_close.msg:19</tt> by nedtool.
  17. * <pre>
  18. * //
  19. * // TODO generated message class
  20. * //
  21. * class Connection_close
  22. * {
  23. * uint8_t type = 2;
  24. * uint16_t error_Code;
  25. * uint16_t reason_Phrase_Length;
  26. * string reason_Phrase;
  27. * }
  28. * </pre>
  29. */
  30. class Connection_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 Connection_close& other);
  39. protected:
  40. // protected and unimplemented operator==(), to prevent accidental usage
  41. bool operator==(const Connection_close&);
  42. public:
  43. Connection_close();
  44. Connection_close(const Connection_close& other);
  45. virtual ~Connection_close();
  46. Connection_close& operator=(const Connection_close& other);
  47. virtual Connection_close *dup() const override {return new Connection_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 Connection_close& obj) {obj.parsimPack(b);}
  61. inline void doParsimUnpacking(omnetpp::cCommBuffer *b, Connection_close& obj) {obj.parsimUnpack(b);}
  62. #endif // ifndef __CONNECTION_CLOSE_M_H