//
// Generated file, do not edit! Created by nedtool 5.6 from pingMessage.msg.
//

#ifndef __PINGMESSAGE_M_H
#define __PINGMESSAGE_M_H

#if defined(__clang__)
#  pragma clang diagnostic ignored "-Wreserved-id-macro"
#endif
#include <omnetpp.h>

// nedtool version check
#define MSGC_VERSION 0x0506
#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>pingMessage.msg:2</tt> by nedtool.
 * <pre>
 * message pingMessage
 * {
 *     int URI;
 *     string feature_type;
 *     int flag;  // 0 for ping   1 for response
 * }
 * </pre>
 */
class pingMessage : public ::omnetpp::cMessage
{
  protected:
    int URI;
    ::omnetpp::opp_string feature_type;
    int flag;

  private:
    void copy(const pingMessage& other);

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

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

    // field getter/setter methods
    virtual int getURI() const;
    virtual void setURI(int URI);
    virtual const char * getFeature_type() const;
    virtual void setFeature_type(const char * feature_type);
    virtual int getFlag() const;
    virtual void setFlag(int flag);
};

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


#endif // ifndef __PINGMESSAGE_M_H

