INET Framework for OMNeT++/OMNEST
IPv6ExtensionHeaders_m.h
Go to the documentation of this file.
00001 //
00002 // Generated file, do not edit! Created by opp_msgc 4.2 from networklayer/ipv6/IPv6ExtensionHeaders.msg.
00003 //
00004 
00005 #ifndef _IPV6EXTENSIONHEADERS_M_H_
00006 #define _IPV6EXTENSIONHEADERS_M_H_
00007 
00008 #include <omnetpp.h>
00009 
00010 // opp_msgc version check
00011 #define MSGC_VERSION 0x0402
00012 #if (MSGC_VERSION!=OMNETPP_VERSION)
00013 #    error Version mismatch! Probably this file was generated by an earlier version of opp_msgc: 'make clean' should help.
00014 #endif
00015 
00016 // cplusplus {{
00017 #include "IPv6Address.h"
00018 #include "IPv6Datagram.h"
00019 // }}
00020 
00021 
00022 
00031 class IPv6HopByHopOptionsHeader : public ::IPv6ExtensionHeader
00032 {
00033   protected:
00034 
00035   private:
00036     void copy(const IPv6HopByHopOptionsHeader& other);
00037 
00038   protected:
00039     // protected and unimplemented operator==(), to prevent accidental usage
00040     bool operator==(const IPv6HopByHopOptionsHeader&);
00041 
00042   public:
00043     IPv6HopByHopOptionsHeader();
00044     IPv6HopByHopOptionsHeader(const IPv6HopByHopOptionsHeader& other);
00045     virtual ~IPv6HopByHopOptionsHeader();
00046     IPv6HopByHopOptionsHeader& operator=(const IPv6HopByHopOptionsHeader& other);
00047     virtual IPv6HopByHopOptionsHeader *dup() const {return new IPv6HopByHopOptionsHeader(*this);}
00048     virtual void parsimPack(cCommBuffer *b);
00049     virtual void parsimUnpack(cCommBuffer *b);
00050 
00051     // field getter/setter methods
00052 };
00053 
00054 inline void doPacking(cCommBuffer *b, IPv6HopByHopOptionsHeader& obj) {obj.parsimPack(b);}
00055 inline void doUnpacking(cCommBuffer *b, IPv6HopByHopOptionsHeader& obj) {obj.parsimUnpack(b);}
00056 
00068 class IPv6RoutingHeader : public ::IPv6ExtensionHeader
00069 {
00070   protected:
00071     unsigned char routingType_var;
00072     unsigned char segmentsLeft_var;
00073     IPv6Address *address_var; // array ptr
00074     unsigned int address_arraysize;
00075 
00076   private:
00077     void copy(const IPv6RoutingHeader& other);
00078 
00079   protected:
00080     // protected and unimplemented operator==(), to prevent accidental usage
00081     bool operator==(const IPv6RoutingHeader&);
00082 
00083   public:
00084     IPv6RoutingHeader();
00085     IPv6RoutingHeader(const IPv6RoutingHeader& other);
00086     virtual ~IPv6RoutingHeader();
00087     IPv6RoutingHeader& operator=(const IPv6RoutingHeader& other);
00088     virtual IPv6RoutingHeader *dup() const {return new IPv6RoutingHeader(*this);}
00089     virtual void parsimPack(cCommBuffer *b);
00090     virtual void parsimUnpack(cCommBuffer *b);
00091 
00092     // field getter/setter methods
00093     virtual unsigned char getRoutingType() const;
00094     virtual void setRoutingType(unsigned char routingType);
00095     virtual unsigned char getSegmentsLeft() const;
00096     virtual void setSegmentsLeft(unsigned char segmentsLeft);
00097     virtual void setAddressArraySize(unsigned int size);
00098     virtual unsigned int getAddressArraySize() const;
00099     virtual IPv6Address& getAddress(unsigned int k);
00100     virtual const IPv6Address& getAddress(unsigned int k) const {return const_cast<IPv6RoutingHeader*>(this)->getAddress(k);}
00101     virtual void setAddress(unsigned int k, const IPv6Address& address);
00102 };
00103 
00104 inline void doPacking(cCommBuffer *b, IPv6RoutingHeader& obj) {obj.parsimPack(b);}
00105 inline void doUnpacking(cCommBuffer *b, IPv6RoutingHeader& obj) {obj.parsimUnpack(b);}
00106 
00118 class IPv6FragmentHeader : public ::IPv6ExtensionHeader
00119 {
00120   protected:
00121     unsigned short fragmentOffset_var;
00122     unsigned int identification_var;
00123     bool moreFragments_var;
00124 
00125   private:
00126     void copy(const IPv6FragmentHeader& other);
00127 
00128   protected:
00129     // protected and unimplemented operator==(), to prevent accidental usage
00130     bool operator==(const IPv6FragmentHeader&);
00131 
00132   public:
00133     IPv6FragmentHeader();
00134     IPv6FragmentHeader(const IPv6FragmentHeader& other);
00135     virtual ~IPv6FragmentHeader();
00136     IPv6FragmentHeader& operator=(const IPv6FragmentHeader& other);
00137     virtual IPv6FragmentHeader *dup() const {return new IPv6FragmentHeader(*this);}
00138     virtual void parsimPack(cCommBuffer *b);
00139     virtual void parsimUnpack(cCommBuffer *b);
00140 
00141     // field getter/setter methods
00142     virtual unsigned short getFragmentOffset() const;
00143     virtual void setFragmentOffset(unsigned short fragmentOffset);
00144     virtual unsigned int getIdentification() const;
00145     virtual void setIdentification(unsigned int identification);
00146     virtual bool getMoreFragments() const;
00147     virtual void setMoreFragments(bool moreFragments);
00148 };
00149 
00150 inline void doPacking(cCommBuffer *b, IPv6FragmentHeader& obj) {obj.parsimPack(b);}
00151 inline void doUnpacking(cCommBuffer *b, IPv6FragmentHeader& obj) {obj.parsimUnpack(b);}
00152 
00161 class IPv6DestinationOptionsHeader : public ::IPv6ExtensionHeader
00162 {
00163   protected:
00164 
00165   private:
00166     void copy(const IPv6DestinationOptionsHeader& other);
00167 
00168   protected:
00169     // protected and unimplemented operator==(), to prevent accidental usage
00170     bool operator==(const IPv6DestinationOptionsHeader&);
00171 
00172   public:
00173     IPv6DestinationOptionsHeader();
00174     IPv6DestinationOptionsHeader(const IPv6DestinationOptionsHeader& other);
00175     virtual ~IPv6DestinationOptionsHeader();
00176     IPv6DestinationOptionsHeader& operator=(const IPv6DestinationOptionsHeader& other);
00177     virtual IPv6DestinationOptionsHeader *dup() const {return new IPv6DestinationOptionsHeader(*this);}
00178     virtual void parsimPack(cCommBuffer *b);
00179     virtual void parsimUnpack(cCommBuffer *b);
00180 
00181     // field getter/setter methods
00182 };
00183 
00184 inline void doPacking(cCommBuffer *b, IPv6DestinationOptionsHeader& obj) {obj.parsimPack(b);}
00185 inline void doUnpacking(cCommBuffer *b, IPv6DestinationOptionsHeader& obj) {obj.parsimUnpack(b);}
00186 
00195 class IPv6AuthenticationHeader : public ::IPv6ExtensionHeader
00196 {
00197   protected:
00198 
00199   private:
00200     void copy(const IPv6AuthenticationHeader& other);
00201 
00202   protected:
00203     // protected and unimplemented operator==(), to prevent accidental usage
00204     bool operator==(const IPv6AuthenticationHeader&);
00205 
00206   public:
00207     IPv6AuthenticationHeader();
00208     IPv6AuthenticationHeader(const IPv6AuthenticationHeader& other);
00209     virtual ~IPv6AuthenticationHeader();
00210     IPv6AuthenticationHeader& operator=(const IPv6AuthenticationHeader& other);
00211     virtual IPv6AuthenticationHeader *dup() const {return new IPv6AuthenticationHeader(*this);}
00212     virtual void parsimPack(cCommBuffer *b);
00213     virtual void parsimUnpack(cCommBuffer *b);
00214 
00215     // field getter/setter methods
00216 };
00217 
00218 inline void doPacking(cCommBuffer *b, IPv6AuthenticationHeader& obj) {obj.parsimPack(b);}
00219 inline void doUnpacking(cCommBuffer *b, IPv6AuthenticationHeader& obj) {obj.parsimUnpack(b);}
00220 
00229 class IPv6EncapsulatingSecurityPayloadHeader : public ::IPv6ExtensionHeader
00230 {
00231   protected:
00232 
00233   private:
00234     void copy(const IPv6EncapsulatingSecurityPayloadHeader& other);
00235 
00236   protected:
00237     // protected and unimplemented operator==(), to prevent accidental usage
00238     bool operator==(const IPv6EncapsulatingSecurityPayloadHeader&);
00239 
00240   public:
00241     IPv6EncapsulatingSecurityPayloadHeader();
00242     IPv6EncapsulatingSecurityPayloadHeader(const IPv6EncapsulatingSecurityPayloadHeader& other);
00243     virtual ~IPv6EncapsulatingSecurityPayloadHeader();
00244     IPv6EncapsulatingSecurityPayloadHeader& operator=(const IPv6EncapsulatingSecurityPayloadHeader& other);
00245     virtual IPv6EncapsulatingSecurityPayloadHeader *dup() const {return new IPv6EncapsulatingSecurityPayloadHeader(*this);}
00246     virtual void parsimPack(cCommBuffer *b);
00247     virtual void parsimUnpack(cCommBuffer *b);
00248 
00249     // field getter/setter methods
00250 };
00251 
00252 inline void doPacking(cCommBuffer *b, IPv6EncapsulatingSecurityPayloadHeader& obj) {obj.parsimPack(b);}
00253 inline void doUnpacking(cCommBuffer *b, IPv6EncapsulatingSecurityPayloadHeader& obj) {obj.parsimUnpack(b);}
00254 
00255 
00256 #endif // _IPV6EXTENSIONHEADERS_M_H_