tictoc11_m.h

来自「OMNeT++经典教程实例 配套OMNeT++官方网站Tutorial」· C头文件 代码 · 共 61 行

H
61
字号
//
// Generated file, do not edit! Created by opp_msgc 3.3 from tictoc11.msg.
//

#ifndef _TICTOC11_M_H_
#define _TICTOC11_M_H_

#include <omnetpp.h>

// opp_msgc version check
#define MSGC_VERSION 0x0303
#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


/**
 * Class generated from <tt>tictoc11.msg</tt> by opp_msgc.
 * <pre>
 * message TicTocMsg11
 * {
 *     fields:
 *         int source;
 *         int destination;
 *         int hopCount = 0;
 * }
 * </pre>
 */
class TicTocMsg11 : public cMessage
{
  protected:
    int source_var;
    int destination_var;
    int hopCount_var;

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

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

    // field getter/setter methods
    virtual int getSource() const;
    virtual void setSource(int source_var);
    virtual int getDestination() const;
    virtual void setDestination(int destination_var);
    virtual int getHopCount() const;
    virtual void setHopCount(int hopCount_var);
};

inline void doPacking(cCommBuffer *b, TicTocMsg11& obj) {obj.netPack(b);}
inline void doUnpacking(cCommBuffer *b, TicTocMsg11& obj) {obj.netUnpack(b);}

#endif // _TICTOC11_M_H_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?