//
// Generated file, do not edit! Created by nedtool 5.2 from Frames/connection_close.msg.
//

#if defined(__clang__)
#  pragma clang diagnostic ignored "-Wreserved-id-macro"
#endif
#ifndef __CONNECTION_CLOSE_M_H
#define __CONNECTION_CLOSE_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>Frames/connection_close.msg:19</tt> by nedtool.
 * <pre>
 * //
 * // TODO generated message class
 * //
 * class Connection_close
 * {
 *     uint8_t type = 2;
 *     uint16_t error_Code;
 *     uint16_t reason_Phrase_Length;
 *     string reason_Phrase;
 * }
 * </pre>
 */
class Connection_close : public ::omnetpp::cObject
{
  protected:
    uint8_t type;
    uint16_t error_Code;
    uint16_t reason_Phrase_Length;
    ::omnetpp::opp_string reason_Phrase;

  private:
    void copy(const Connection_close& other);

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

  public:
    Connection_close();
    Connection_close(const Connection_close& other);
    virtual ~Connection_close();
    Connection_close& operator=(const Connection_close& other);
    virtual Connection_close *dup() const override {return new Connection_close(*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 uint16_t getError_Code() const;
    virtual void setError_Code(uint16_t error_Code);
    virtual uint16_t getReason_Phrase_Length() const;
    virtual void setReason_Phrase_Length(uint16_t reason_Phrase_Length);
    virtual const char * getReason_Phrase() const;
    virtual void setReason_Phrase(const char * reason_Phrase);
};

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


#endif // ifndef __CONNECTION_CLOSE_M_H

