Yate
Public Types | Public Member Functions
AsnValue Class Reference

An ASN.1 value. More...

#include <yateasn.h>

Inheritance diagram for AsnValue:
GenObject

List of all members.

Public Types

enum  ValType {
  INTEGER = 1, STRING = 2, OBJECT_ID = 3, IPADDRESS = 4,
  COUNTER = 5, TIMETICKS = 6, ARBITRARY = 7, BIG_COUNTER = 8,
  UNSIGNED_INTEGER = 9
}

Public Member Functions

 AsnValue ()
 AsnValue (const String &value, int type=STRING)
virtual ~AsnValue ()
String getValue ()
int type ()
AsnValueoperator= (AsnValue *val)
AsnValueoperator= (AsnValue val)
void setValue (const String &data)
void setType (int type)

Detailed Description

An ASN.1 value.

Class wrapper for different types of ASN.1 values


Member Enumeration Documentation

enum ValType

Type of value


Constructor & Destructor Documentation

AsnValue ( ) [inline]

Constructor

AsnValue ( const String value,
int  type = STRING 
) [inline]

Constructor

Parameters:
valueObject value
typeAsnValue type, default is String
virtual ~AsnValue ( ) [inline, virtual]

Destructor


Member Function Documentation

String getValue ( ) [inline]

Get the value in the form of a string

Returns:
String containing the internal data

Referenced by AsnValue::operator=().

AsnValue& operator= ( AsnValue val) [inline]

Assign operator

References AsnValue::getValue(), and AsnValue::type().

AsnValue& operator= ( AsnValue  val) [inline]

Assign operator

References AsnValue::getValue(), and AsnValue::type().

void setType ( int  type) [inline]

Set data type

Parameters:
typeThe type assigned
void setValue ( const String data) [inline]

Set data

Parameters:
dataThe data to which the internal data will be set
int type ( ) [inline]

Get the type of the data so that we know how to interpret it

Returns:
The type of the data

Referenced by AsnValue::operator=().


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