ack_m.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. //
  2. // Generated file, do not edit! Created by nedtool 5.2 from Frames/ack.msg.
  3. //
  4. #if defined(__clang__)
  5. # pragma clang diagnostic ignored "-Wreserved-id-macro"
  6. #endif
  7. #ifndef __ACK_M_H
  8. #define __ACK_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/ack.msg:19</tt> by nedtool.
  17. * <pre>
  18. * //
  19. * // TODO generated message class
  20. * //
  21. * class Ack
  22. * {
  23. * uint8_t type;
  24. * uint8_t num_Blocks;
  25. * uint32_t largest_Acknowledged;
  26. * uint16_t ack_Delay;
  27. * string ack_Block_Section;
  28. * }
  29. * </pre>
  30. */
  31. class Ack : public ::omnetpp::cObject
  32. {
  33. protected:
  34. uint8_t type;
  35. uint8_t num_Blocks;
  36. uint32_t largest_Acknowledged;
  37. uint16_t ack_Delay;
  38. ::omnetpp::opp_string ack_Block_Section;
  39. private:
  40. void copy(const Ack& other);
  41. protected:
  42. // protected and unimplemented operator==(), to prevent accidental usage
  43. bool operator==(const Ack&);
  44. public:
  45. Ack();
  46. Ack(const Ack& other);
  47. virtual ~Ack();
  48. Ack& operator=(const Ack& other);
  49. virtual Ack *dup() const override {return new Ack(*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 uint8_t getNum_Blocks() const;
  56. virtual void setNum_Blocks(uint8_t num_Blocks);
  57. virtual uint32_t getLargest_Acknowledged() const;
  58. virtual void setLargest_Acknowledged(uint32_t largest_Acknowledged);
  59. virtual uint16_t getAck_Delay() const;
  60. virtual void setAck_Delay(uint16_t ack_Delay);
  61. virtual const char * getAck_Block_Section() const;
  62. virtual void setAck_Block_Section(const char * ack_Block_Section);
  63. };
  64. inline void doParsimPacking(omnetpp::cCommBuffer *b, const Ack& obj) {obj.parsimPack(b);}
  65. inline void doParsimUnpacking(omnetpp::cCommBuffer *b, Ack& obj) {obj.parsimUnpack(b);}
  66. #endif // ifndef __ACK_M_H