TTEthernet Model for INET Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CTFrame_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/CTFrame.msg.
3 //
4 
5 #ifndef _CTFRAME_M_H_
6 #define _CTFRAME_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 "EtherFrame_m.h"
18 // }}
19 
20 
21 namespace TTEthernetModel {
22 
64 class CTFrame_Base : public ::EtherFrame
65 {
66  protected:
67  opp_string displayString_var;
68 
69  private:
70  void copy(const CTFrame_Base& other);
71 
72  protected:
73  // protected and unimplemented operator==(), to prevent accidental usage
74  bool operator==(const CTFrame_Base&);
75  // make constructors protected to avoid instantiation
76  CTFrame_Base(const char *name=NULL, int kind=0);
77  CTFrame_Base(const CTFrame_Base& other);
78  // make assignment operator protected to force the user override it
79  CTFrame_Base& operator=(const CTFrame_Base& other);
80 
81  public:
82  virtual ~CTFrame_Base();
83  virtual CTFrame_Base *dup() const {throw cRuntimeError("You forgot to manually add a dup() function to class CTFrame");}
84  virtual void parsimPack(cCommBuffer *b);
85  virtual void parsimUnpack(cCommBuffer *b);
86 
87  // field getter/setter methods
88  virtual uint16_t getCtID() const = 0;
89  virtual void setCtID(uint16_t ctID) = 0;
90  virtual uint32_t getCtMarker() const = 0;
91  virtual void setCtMarker(uint32_t ctMarker) = 0;
92  virtual const char * getDisplayString() const;
93  virtual void setDisplayString(const char * displayString);
94 };
95 
96 }; // end namespace TTEthernetModel
97 
98 #endif // _CTFRAME_M_H_