Yate
ASNObjId Class Reference

#include <yateasn.h>

Inheritance diagram for ASNObjId:
GenObject

Public Member Functions

 ASNObjId ()
 
 ASNObjId (const ASNObjId &original)
 
 ASNObjId (const String &val)
 
 ASNObjId (const String &name, const String &val)
 
 ASNObjId (AsnMib *mib)
 
 ~ASNObjId ()
 
ASNObjIdoperator= (const ASNObjId &original)
 
ASNObjIdoperator= (const String &val)
 
ASNObjIdoperator= (const char *val)
 
void toDataBlock ()
 
DataBlock getIds ()
 
const StringtoString () const
 
const StringgetName () const
 
void setValue (const String &value)
 
- Public Member Functions inherited from GenObject
 GenObject ()
 
virtual ~GenObject ()
 
virtual bool alive () const
 
virtual void destruct ()
 
virtual const StringtraceId () const
 
virtual void * getObject (const String &name) const
 
NamedCountergetObjCounter () const
 
NamedCountersetObjCounter (NamedCounter *counter)
 

Additional Inherited Members

- Static Public Member Functions inherited from GenObject
static void * getObject (const String &name, const GenObject *obj)
 
static bool getObjCounting ()
 
static void setObjCounting (bool enable)
 
static NamedCountergetObjCounter (const String &name, bool create=true)
 
static ObjListgetObjCounters ()
 

Detailed Description

Class for holding only an OID

Constructor & Destructor Documentation

◆ ASNObjId() [1/5]

ASNObjId ( )

Constructor

Referenced by ASNObjId(), operator=(), operator=(), and operator=().

◆ ASNObjId() [2/5]

ASNObjId ( const ASNObjId & original)
inline

Copy constructor

Parameters
originalOID object to copy

References ASNObjId().

◆ ASNObjId() [3/5]

ASNObjId ( const String & val)

Constructor

Parameters
valOID value in string format

◆ ASNObjId() [4/5]

ASNObjId ( const String & name,
const String & val )

Constructor

Parameters
nameName of the OID
valOID value in string format

◆ ASNObjId() [5/5]

ASNObjId ( AsnMib * mib)

Constructor

Parameters
mibMib used for creating this OID

◆ ~ASNObjId()

~ASNObjId ( )

Destructor

Member Function Documentation

◆ getIds()

DataBlock getIds ( )

Get the sequence form of the OID

Returns
Datablock sequence of ids

◆ getName()

const String & getName ( ) const
inline

Get the name of the OID

Returns
String representation of the name

◆ operator=() [1/3]

ASNObjId & operator= ( const ASNObjId & original)
inline

Assignment operator from OID

References ASNObjId(), and toString().

◆ operator=() [2/3]

ASNObjId & operator= ( const char * val)
inline

Assign operator from a const char* value

References ASNObjId().

◆ operator=() [3/3]

ASNObjId & operator= ( const String & val)
inline

Assign operator from a string value

References ASNObjId().

◆ setValue()

void setValue ( const String & value)
inline

Set the OID value

Parameters
valueOID value

References toDataBlock().

◆ toDataBlock()

void toDataBlock ( )

Transform the value of this OID from a string value to a sequence of numbers

Referenced by setValue().

◆ toString()

const String & toString ( ) const
inlinevirtual

String representation of the OID

Reimplemented from GenObject.

Referenced by operator=().


The documentation for this class was generated from the following file: