//
// Generated file, do not edit! Created by opp_msgc 4.1 from baseNetwork/node/messages/LEACH_TDMA_Schedule.msg.
//

#ifndef _LEACH_TDMA_SCHEDULE_M_H_
#define _LEACH_TDMA_SCHEDULE_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 "NetwPkt_m.h"
// }}



/**
 * Class generated from <tt>baseNetwork/node/messages/LEACH_TDMA_Schedule.msg</tt> by opp_msgc.
 * <pre>
 * message LEACH_TDMA_Schedule extends NetwPkt {
 *     int schedule[];
 * }
 * </pre>
 */
class LEACH_TDMA_Schedule : public ::NetwPkt
{
  protected:
    int *schedule_var; // array ptr
    unsigned int schedule_arraysize;

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

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

    // field getter/setter methods
    virtual void setScheduleArraySize(unsigned int size);
    virtual unsigned int getScheduleArraySize() const;
    virtual int getSchedule(unsigned int k) const;
    virtual void setSchedule(unsigned int k, int schedule_var);
};

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


#endif // _LEACH_TDMA_SCHEDULE_M_H_
