|
|
Class wrapper for different types of ASN.1 values
enum ValType { INTEGER = 1, STRING = 2, OBJECT_ID = 3, IPADDRESS = 4, COUNTER = 5, TIMETICKS = 6, ARBITRARY = 7, BIG_COUNTER = 8, UNSIGNED_INTEGER = 9 } | ValType |
Type of value
inline AsnValue ()
| AsnValue |
Constructor
inline AsnValue (const String& value, int type = STRING)
| AsnValue |
Constructor
Parameters:
value | Object value |
type | AsnValue type, default is String |
inline ~AsnValue ()
| ~AsnValue |
[virtual]
Destructor
inline String getValue ()
| getValue |
Get the value in the form of a string
Returns: String containing the internal data
inline int type ()
| type |
Get the type of the data so that we know how to interpret it
Returns: The type of the data
inline AsnValue& operator= ( AsnValue* val)
| operator= |
Assign operator
inline AsnValue& operator= ( AsnValue val)
| operator= |
Assign operator
inline void setValue (const String& data)
| setValue |
Set data
Parameters:
data | The data to which the internal data will be set |
inline void setType (int type)
| setType |
Set data type
Parameters:
type | The type assigned |
Generated by: paulc on bussard on Fri Apr 1 18:17:10 2011, using kdoc 2.0a54. |