|
|
 |
 |
|
#include <ASN1TObjId.h>
List of all members.
Detailed Description
Object identifier. This is the base class for generated C++ data type classes for object identifier values.
Constructor & Destructor Documentation
| ASN1TObjId::ASN1TObjId |
( |
|
) |
[inline] |
|
|
|
The default constructor creates an empty object identifier value. |
| ASN1TObjId::ASN1TObjId |
( |
ASN1OCTET |
_numids, |
|
|
const ASN1UINT * |
_subids |
|
) |
|
|
|
|
This constructor initializes the object identifer to contain the given data values.
- Parameters:
-
| _numids | - Number of subidentifiers in the OID. |
| _subids | - Array of subidentifier values. |
|
| ASN1TObjId::ASN1TObjId |
( |
const ASN1OBJID & |
oid |
) |
|
|
|
|
This constructor initializes the object identifier to contain the given data values. This can be used to set the value to a compiler-generated OID value.
- Parameters:
-
| oid | - C object identifier value. |
|
|
|
The copy constructor.
- Parameters:
-
| oid | - C++ object identifier value. |
|
| ASN1TObjId::ASN1TObjId |
( |
const char * |
dotted_oid_string |
) |
|
|
|
|
Construct an OID from a dotted string.
- Parameters:
-
| dotted_oid_string | - for example "1.3.1.6.1.10" |
|
Member Function Documentation
| int ASN1TObjId::nCompare |
( |
const ASN1UINT |
n, |
|
|
const ASN1TObjId & |
o |
|
) |
const |
|
|
|
Compare the first n sub-ids(left to right) of two object identifiers.
- Parameters:
-
| n | - Number of subid values to compare. |
| o | - OID to compare this OID with. |
- Returns:
- - 0 if OID's are equal, -1 if this OID less than given OID, +1 if this OID > given OID.
|
|
|
Overloaded += operator. This operator allows one object identifier to be appended to another object identifier.
- Parameters:
-
| o | - C++ object identifier value. |
- Returns:
- - True if values are equal.
|
| ASN1TObjId& ASN1TObjId::operator+= |
( |
const ASN1UINT |
i |
) |
|
|
|
|
Overloaded += operator. This operator allows a single subidentifier in the form of an integer value to be appended to an existing OID object.
- Parameters:
-
| i | - Subidentifier to append. |
- Returns:
- - True if values are equal.
|
| ASN1TObjId& ASN1TObjId::operator+= |
( |
const char * |
dotted_oid_string |
) |
|
|
|
|
Overloaded += operator. This operator allows subidentifiers in the form of a dotted OID string ("n.n.n") to be appended to an existing OID object.
- Parameters:
-
| dotted_oid_string | - C++ object identifier value. |
- Returns:
- - True if values are equal.
|
| void ASN1TObjId::operator= |
( |
const ASN1TObjId & |
rhs |
) |
|
|
|
|
This assignment operator sets the object identifier to contain the OID in the given C++ structure.
- Parameters:
-
| rhs | - C++ object identifier value. |
|
| void ASN1TObjId::operator= |
( |
const ASN1OBJID & |
rhs |
) |
|
|
|
|
This assignment operator sets the object identifier to contain the OID in the given C structure. This can be used to set the value to a compiler-generated OID value.
- Parameters:
-
| rhs | - C object identifier value. |
|
| ASN1TObjId& ASN1TObjId::operator= |
( |
const char * |
dotted_oid_string |
) |
|
|
|
|
Assignment from a string.
- Parameters:
-
| dotted_oid_string | - New value (for example "1.3.6.1.6.0"); |
|
| int ASN1TObjId::RnCompare |
( |
const ASN1UINT |
n, |
|
|
const ASN1TObjId & |
o |
|
) |
const |
|
|
|
Compare the last n sub-ids(right to left) of two object identifiers.
- Parameters:
-
| n | - Number of subid values to compare. |
| o | - OID to compare this OID with. |
- Returns:
- - 0 if OID's are equal, -1 if this OID less than given OID, +1 if this OID > given OID.
|
| void ASN1TObjId::set_data |
( |
const ASN1UINT * |
raw_oid, |
|
|
ASN1UINT |
oid_len |
|
) |
|
|
|
|
Sets the data of an object identifier using a pointer and a length.
- Parameters:
-
| raw_oid | - Pointer to an array of subidentifier values. |
| oid_len | - Number of subids in the array, |
|
| const char* ASN1TObjId::toString |
( |
ASN1CTXT * |
pctxt |
) |
const |
|
|
|
Get a printable ASCII string of a part of the value.
- Parameters:
-
| pctxt | - Pointer to a context structure. |
- Returns:
- - Dotted OID string (for example "3.6.1.6")
|
| void ASN1TObjId::trim |
( |
const ASN1UINT |
n |
) |
|
|
|
|
Trim the given number of rightmost sub elements from this OID.
- Parameters:
-
| n | - number of subids to trim from OID |
|
The documentation for this struct was generated from the following file:
|
This document may be distributed in any form, electronic
or otherwise, provided that it is distributed in its entirety
and that the copyright and this notice are included.
|
This file was last modified on
1 Oct 2004. ASN1C C/C++ Common Runtime, ASN1C v5.7x |
|