//
// Generated file, do not edit! Created by nedtool 5.2 from Headers/short_Header.msg.
//

#if defined(__clang__)
#  pragma clang diagnostic ignored "-Wreserved-id-macro"
#endif
#ifndef __SHORT_HEADER_M_H
#define __SHORT_HEADER_M_H

#include <omnetpp.h>

// nedtool version check
#define MSGC_VERSION 0x0502
#if (MSGC_VERSION!=OMNETPP_VERSION)
#    error Version mismatch! Probably this file was generated by an earlier version of nedtool: 'make clean' should help.
#endif



/**
 * Class generated from <tt>Headers/short_Header.msg:20</tt> by nedtool.
 * <pre>
 * //
 * // TODO generated message class
 * //
 * packet Short_Header
 * {
 *     uint8_t type;
 *     uint64_t CID;
 *     uint32_t PN;
 * }
 * </pre>
 */
class Short_Header : public ::omnetpp::cPacket
{
  protected:
    uint8_t type;
    uint64_t CID;
    uint32_t PN;

  private:
    void copy(const Short_Header& other);

  protected:
    // protected and unimplemented operator==(), to prevent accidental usage
    bool operator==(const Short_Header&);

  public:
    Short_Header(const char *name=nullptr, short kind=0);
    Short_Header(const Short_Header& other);
    virtual ~Short_Header();
    Short_Header& operator=(const Short_Header& other);
    virtual Short_Header *dup() const override {return new Short_Header(*this);}
    virtual void parsimPack(omnetpp::cCommBuffer *b) const override;
    virtual void parsimUnpack(omnetpp::cCommBuffer *b) override;

    // field getter/setter methods
    virtual uint8_t getType() const;
    virtual void setType(uint8_t type);
    virtual uint64_t getCID() const;
    virtual void setCID(uint64_t CID);
    virtual uint32_t getPN() const;
    virtual void setPN(uint32_t PN);
};

inline void doParsimPacking(omnetpp::cCommBuffer *b, const Short_Header& obj) {obj.parsimPack(b);}
inline void doParsimUnpacking(omnetpp::cCommBuffer *b, Short_Header& obj) {obj.parsimUnpack(b);}


#endif // ifndef __SHORT_HEADER_M_H

