stream_m.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. //
  2. // Generated file, do not edit! Created by nedtool 5.2 from Frames/stream.msg.
  3. //
  4. #if defined(__clang__)
  5. # pragma clang diagnostic ignored "-Wreserved-id-macro"
  6. #endif
  7. #ifndef __STREAM_M_H
  8. #define __STREAM_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/stream.msg:19</tt> by nedtool.
  17. * <pre>
  18. * //
  19. * // TODO generated message class
  20. * //
  21. * class Stream
  22. * {
  23. * uint8_t type;
  24. * uint32_t stream_Id;
  25. * uint64_t offset;
  26. * uint16_t data_Length;
  27. * string stream_Data;
  28. * }
  29. * </pre>
  30. */
  31. class Stream : public ::omnetpp::cObject
  32. {
  33. protected:
  34. uint8_t type;
  35. uint32_t stream_Id;
  36. uint64_t offset;
  37. uint16_t data_Length;
  38. ::omnetpp::opp_string stream_Data;
  39. private:
  40. void copy(const Stream& other);
  41. protected:
  42. // protected and unimplemented operator==(), to prevent accidental usage
  43. bool operator==(const Stream&);
  44. public:
  45. Stream();
  46. Stream(const Stream& other);
  47. virtual ~Stream();
  48. Stream& operator=(const Stream& other);
  49. virtual Stream *dup() const override {return new Stream(*this);}
  50. virtual void parsimPack(omnetpp::cCommBuffer *b) const override;
  51. virtual void parsimUnpack(omnetpp::cCommBuffer *b) override;
  52. // field getter/setter methods
  53. virtual uint8_t getType() const;
  54. virtual void setType(uint8_t type);
  55. virtual uint32_t getStream_Id() const;
  56. virtual void setStream_Id(uint32_t stream_Id);
  57. virtual uint64_t getOffset() const;
  58. virtual void setOffset(uint64_t offset);
  59. virtual uint16_t getData_Length() const;
  60. virtual void setData_Length(uint16_t data_Length);
  61. virtual const char * getStream_Data() const;
  62. virtual void setStream_Data(const char * stream_Data);
  63. };
  64. inline void doParsimPacking(omnetpp::cCommBuffer *b, const Stream& obj) {obj.parsimPack(b);}
  65. inline void doParsimUnpacking(omnetpp::cCommBuffer *b, Stream& obj) {obj.parsimUnpack(b);}
  66. #endif // ifndef __STREAM_M_H