TTEthernet Model for INET Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
TTFrame_m.h
Go to the documentation of this file.
1 //
2 // Generated file, do not edit! Created by opp_msgc 4.3 from linklayer/ethernet/TTFrame.msg.
3 //
4 
5 #ifndef _TTFRAME_M_H_
6 #define _TTFRAME_M_H_
7 
8 #include <omnetpp.h>
9 
10 // opp_msgc version check
11 #define MSGC_VERSION 0x0403
12 #if (MSGC_VERSION!=OMNETPP_VERSION)
13 # error Version mismatch! Probably this file was generated by an earlier version of opp_msgc: 'make clean' should help.
14 #endif
15 
16 // cplusplus {{
17 #include "CTFrame.h"
18 // }}
19 
20 
21 namespace TTEthernetModel {
22 
33 {
34  protected:
35  opp_string displayString_var;
36 
37  private:
38  void copy(const TTFrame& other);
39 
40  protected:
41  // protected and unimplemented operator==(), to prevent accidental usage
42  bool operator==(const TTFrame&);
43 
44  public:
45  TTFrame(const char *name=NULL, int kind=0);
46  TTFrame(const TTFrame& other);
47  virtual ~TTFrame();
48  TTFrame& operator=(const TTFrame& other);
49  virtual TTFrame *dup() const {return new TTFrame(*this);}
50  virtual void parsimPack(cCommBuffer *b);
51  virtual void parsimUnpack(cCommBuffer *b);
52 
53  // field getter/setter methods
54  virtual const char * getDisplayString() const;
55  virtual void setDisplayString(const char * displayString);
56 };
57 
58 inline void doPacking(cCommBuffer *b, TTFrame& obj) {obj.parsimPack(b);}
59 inline void doUnpacking(cCommBuffer *b, TTFrame& obj) {obj.parsimUnpack(b);}
60 
61 }; // end namespace TTEthernetModel
62 
63 #endif // _TTFRAME_M_H_