INET Framework for OMNeT++/OMNEST
inet::TlvOptionBase Class Reference

Class generated from inet/common/TlvOptions.msg:12 by opp_msgtool. More...

#include <TlvOptions_m.h>

Inheritance diagram for inet::TlvOptionBase:
inet::GpsrOption inet::Ipv4Option inet::TlvOptionRaw inet::Ipv4OptionEnd inet::Ipv4OptionNop inet::Ipv4OptionRecordRoute inet::Ipv4OptionRouterAlert inet::Ipv4OptionStreamId inet::Ipv4OptionTimestamp inet::Ipv4OptionUnknown

Public Member Functions

 TlvOptionBase ()
 
 TlvOptionBase (const TlvOptionBase &other)
 
virtual ~TlvOptionBase ()
 
TlvOptionBaseoperator= (const TlvOptionBase &other)
 
virtual TlvOptionBasedup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual short getType () const
 
virtual void setType (short type)
 
virtual short getLength () const
 
virtual void setLength (short length)
 

Protected Member Functions

bool operator== (const TlvOptionBase &)=delete
 

Protected Attributes

short type = -1
 
short length = 0
 

Private Member Functions

void copy (const TlvOptionBase &other)
 

Detailed Description

Class generated from inet/common/TlvOptions.msg:12 by opp_msgtool.

class TlvOptionBase extends cObject
{
    @packetData;
    short type = -1;
    short length = 0;   // total length of option
}

Constructor & Destructor Documentation

◆ TlvOptionBase() [1/2]

inet::TlvOptionBase::TlvOptionBase ( )

◆ TlvOptionBase() [2/2]

inet::TlvOptionBase::TlvOptionBase ( const TlvOptionBase other)

◆ ~TlvOptionBase()

virtual inet::TlvOptionBase::~TlvOptionBase ( )
virtual

Member Function Documentation

◆ copy()

void inet::TlvOptionBase::copy ( const TlvOptionBase other)
private

◆ dup()

◆ getLength()

virtual short inet::TlvOptionBase::getLength ( ) const
virtual

◆ getType()

virtual short inet::TlvOptionBase::getType ( ) const
virtual

◆ operator=()

TlvOptionBase& inet::TlvOptionBase::operator= ( const TlvOptionBase other)

◆ operator==()

bool inet::TlvOptionBase::operator== ( const TlvOptionBase )
protecteddelete

◆ parsimPack()

◆ parsimUnpack()

◆ setLength()

virtual void inet::TlvOptionBase::setLength ( short  length)
virtual

◆ setType()

virtual void inet::TlvOptionBase::setType ( short  type)
virtual

Member Data Documentation

◆ length

short inet::TlvOptionBase::length = 0
protected

◆ type

short inet::TlvOptionBase::type = -1
protected

The documentation for this class was generated from the following file:
inet::TlvOptionBase::TlvOptionBase
TlvOptionBase()