Yate
AsnMib Class Reference

#include <yateasn.h>

Inheritance diagram for AsnMib:
GenObject

Public Types

enum  Access {
  notAccessible = 0 , accessibleForNotify = 1 , readOnly = 2 , readWrite = 3 ,
  readCreate = 4
}
 

Public Member Functions

 AsnMib ()
 
 AsnMib (NamedList &params)
 
 ~AsnMib ()
 
StringgetAccess ()
 
int getAccessValue ()
 
StringgetName ()
 
String getOID ()
 
StringgetType ()
 
StringgetRevision ()
 
const StringtoString () const
 
void setIndex (unsigned int ind)
 
unsigned int index ()
 
int compareTo (AsnMib *mib)
 
String getParent ()
 
- 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 describing an ASN.1 OID

Member Enumeration Documentation

◆ Access

enum Access

Access levels

Constructor & Destructor Documentation

◆ AsnMib() [1/2]

AsnMib ( )
inline

Constructor

Referenced by compareTo().

◆ AsnMib() [2/2]

AsnMib ( NamedList & params)

Constructor

Parameters
paramsNamedList containing data for building this object, it should contain name, access level, value type

◆ ~AsnMib()

~AsnMib ( )
inline

Destructor

Member Function Documentation

◆ compareTo()

int compareTo ( AsnMib * mib)

Compare this object ID with another

Parameters
mibThe object ID with which this object should be compared
Returns
0 if they're equal, -1 if this object is less lexicographically then the given parameter, 1 if it's greater

References AsnMib().

◆ getAccess()

String & getAccess ( )
inline

Get OID access level in string form

Returns
String containing the access level for this OID. It's one of the following values : not-accessible, read-only, read-write, read-create, accessible-for-notify.

◆ getAccessValue()

int getAccessValue ( )
inline

Get OID access level

Returns
String containing the access level for this OID. It's one of the following values : not-accessible, read-only, read-write, read-create, accessible-for-notify.

◆ getName()

String & getName ( )
inline

Get the name of this OID

Returns
Name of the OID

◆ getOID()

String getOID ( )
inline

Get the oid

Returns
The OID

◆ getParent()

String getParent ( )
inline

Get the parent object ID of this object

Returns
String version of the parent ID

References String::rfind().

◆ getRevision()

String & getRevision ( )
inline

Get the revision of this OID

Returns
String containing the revision string

◆ getType()

String & getType ( )
inline

Get the type of the value of this OID

Returns
String containing the type of value

◆ index()

unsigned int index ( )
inline

Obtain the index of this OID

Returns
This OID's index in the OID table

◆ setIndex()

void setIndex ( unsigned int ind)
inline

Set the index of an OID in case this OID is part of a table.

Parameters
indGiven index

◆ toString()

const String & toString ( ) const
inlinevirtual

Get the string representation of this OID

Returns
String representation of this OID

Reimplemented from GenObject.


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