//
// Generated file, do not edit! Created by opp_msgc 4.1 from src/node/sensor/WiseSensorMessage.msg.
//

#ifndef _WISESENSORMESSAGE_M_H_
#define _WISESENSORMESSAGE_M_H_

#include <omnetpp.h>

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

// cplusplus {{
#include "Node.h"
// }}



/**
 * Enum generated from <tt>src/node/sensor/WiseSensorMessage.msg</tt> by opp_msgc.
 * <pre>
 * enum WiseSensorMessageType {
 *     SAMPLE = 110;
 *     UPDATE_COVERSETS = 111;
 *     ALERT = 112;
 *     SENSOR_READING = 114;
 *     MULTIMEDIA = 115;
 * };
 * </pre>
 */
enum WiseSensorMessageType {
    SAMPLE = 110,
    UPDATE_COVERSETS = 111,
    ALERT = 112,
    SENSOR_READING = 114,
    MULTIMEDIA = 115
};

/**
 * Class generated from <tt>src/node/sensor/WiseSensorMessage.msg</tt> by opp_msgc.
 * <pre>
 * message WiseSensorMessage {
 *     double payload;
 *     double sensedValue;
 *     string sensorType;
 *     int sensorIndex;
 *     TraceInfo info;
 *     char typeFrame;
 *     int idFrame;
 *     int byteLength;
 *     double x;
 *     double y;
 * }
 * </pre>
 */
class WiseSensorMessage : public ::cMessage
{
  protected:
    double payload_var;
    double sensedValue_var;
    opp_string sensorType_var;
    int sensorIndex_var;
    ::TraceInfo info_var;
    char typeFrame_var;
    int idFrame_var;
    int byteLength_var;
    double x_var;
    double y_var;

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

  public:
    WiseSensorMessage(const char *name=NULL, int kind=0);
    WiseSensorMessage(const WiseSensorMessage& other);
    virtual ~WiseSensorMessage();
    WiseSensorMessage& operator=(const WiseSensorMessage& other);
    virtual WiseSensorMessage *dup() const {return new WiseSensorMessage(*this);}
    virtual void parsimPack(cCommBuffer *b);
    virtual void parsimUnpack(cCommBuffer *b);

    // field getter/setter methods
    virtual double getPayload() const;
    virtual void setPayload(double payload_var);
    virtual double getSensedValue() const;
    virtual void setSensedValue(double sensedValue_var);
    virtual const char * getSensorType() const;
    virtual void setSensorType(const char * sensorType_var);
    virtual int getSensorIndex() const;
    virtual void setSensorIndex(int sensorIndex_var);
    virtual TraceInfo& getInfo();
    virtual const TraceInfo& getInfo() const {return const_cast<WiseSensorMessage*>(this)->getInfo();}
    virtual void setInfo(const TraceInfo& info_var);
    virtual char getTypeFrame() const;
    virtual void setTypeFrame(char typeFrame_var);
    virtual int getIdFrame() const;
    virtual void setIdFrame(int idFrame_var);
    virtual int getByteLength() const;
    virtual void setByteLength(int byteLength_var);
    virtual double getX() const;
    virtual void setX(double x_var);
    virtual double getY() const;
    virtual void setY(double y_var);
};

inline void doPacking(cCommBuffer *b, WiseSensorMessage& obj) {obj.parsimPack(b);}
inline void doUnpacking(cCommBuffer *b, WiseSensorMessage& obj) {obj.parsimUnpack(b);}


#endif // _WISESENSORMESSAGE_M_H_
