Yate
Public Types | Public Member Functions
AsnMib Class Reference

#include <yateasn.h>

Inheritance diagram for AsnMib:
GenObject

List of all members.

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 ()

Detailed Description

Class describing an ASN.1 OID


Member Enumeration Documentation

enum Access

Access levels


Constructor & Destructor Documentation

AsnMib ( ) [inline]

Constructor

AsnMib ( NamedList params)

Constructor

Parameters:
paramsNamedList containing data for building this object, it should contain name, access level, value type
~AsnMib ( ) [inline]

Destructor


Member Function Documentation

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
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.
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.
String& getName ( ) [inline]

Get the name of this OID

Returns:
Name of the OID
String getOID ( ) [inline]

Get the oid

Returns:
The OID
String getParent ( ) [inline]

Get the parent object ID of this object

Returns:
String version of the parent ID

References String::rfind().

String& getRevision ( ) [inline]

Get the revision of this OID

Returns:
String containing the revision string
String& getType ( ) [inline]

Get the type of the value of this OID

Returns:
String containing the type of value
unsigned int index ( ) [inline]

Obtain the index of this OID

Returns:
This OID's index in the OID table
void setIndex ( unsigned int  ind) [inline]

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

Parameters:
indGiven index
const String& toString ( ) const [inline, virtual]

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: