00001 // 00002 // Generated file, do not edit! Created by opp_msgc. 00003 // 00004 00005 #ifndef _MACADDRESS_M_H_ 00006 #define _MACADDRESS_M_H_ 00007 00008 #include <omnetpp.h> 00009 00010 class MACAddress_Base : public cPolymorphic 00011 { 00012 protected: 00013 // make constructors protected to avoid instantiation 00014 MACAddress_Base(); 00015 MACAddress_Base(const MACAddress_Base& other); 00016 // make assignment operator protected to force the user override it 00017 MACAddress_Base& operator=(const MACAddress_Base& other); 00018 public: 00019 virtual ~MACAddress_Base(); 00020 00021 // field getter/setter methods 00022 virtual unsigned int getAddressArraySize() const = 0; 00023 virtual unsigned char getAddress(unsigned int k) const = 0; 00024 virtual void setAddress(unsigned int k, unsigned char address_var) = 0; 00025 }; 00026 00027 /* 00028 * The minimum code to be written for MACAddress: 00029 * (methods that cannot be inherited from MACAddress_Base) 00030 * 00031 * class MACAddress : public MACAddress_Base 00032 * { 00033 * public: 00034 * MACAddress() : MACAddress_Base() {} 00035 * MACAddress(const MACAddress& other) : MACAddress_Base() {operator=(other);} 00036 * MACAddress& operator=(const MACAddress& other) {MACAddress_Base::operator=(other); return *this;} 00037 * }; 00038 */ 00039 00040 #endif // _MACADDRESS_M_H_
1.2.17