ASN1C C/C++ Common Runtime  ASN1C v7.7.x
Classes | Typedefs | Functions
ASN.1 Type (ASN1T_) Base Classes

Classes

struct  ASN1TDynBitStr
 
struct  ASN1TDynBitStr64
 
struct  ASN1TBitStr32
 
struct  ASN1TBMPString
 
struct  ASN1TUniversalString
 
struct  ASN1TOpenType
 
struct  Asn1TObject
 
struct  ASN1TSeqExt
 
struct  ASN1TPDU
 
struct  ASN1TSeqOfList
 
struct  ASN1TPDUSeqOfList
 
struct  ASN1TObjId
 
struct  ASN1TDynOctStr
 
class  ASN1TTime
 

Typedefs

typedef Asn1TObject ASN1TObject
 

Functions

int operator== (const ASN1OBJID &lhs, const ASN1OBJID &rhs)
 
int operator== (const ASN1OBJID &lhs, const char *dotted_oid_string)
 
int operator!= (const ASN1TObjId &lhs, const ASN1TObjId &rhs)
 
int operator!= (const ASN1OBJID &lhs, const ASN1OBJID &rhs)
 
int operator!= (const ASN1OBJID &lhs, const char *dotted_oid_string)
 
int operator!= (const ASN1TObjId &lhs, const char *dotted_oid_string)
 
int operator< (const ASN1TObjId &lhs, const ASN1TObjId &rhs)
 
int operator< (const ASN1OBJID &lhs, const ASN1OBJID &rhs)
 
int operator< (const ASN1OBJID &lhs, const char *dotted_oid_string)
 
int operator< (const ASN1TObjId &lhs, const char *dotted_oid_string)
 
int operator<= (const ASN1TObjId &lhs, const ASN1TObjId &rhs)
 
int operator<= (const ASN1OBJID &lhs, const ASN1OBJID &rhs)
 
int operator<= (const ASN1TObjId &lhs, const char *dotted_oid_string)
 
int operator<= (const ASN1OBJID &lhs, const char *dotted_oid_string)
 
int operator> (const ASN1TObjId &lhs, const ASN1TObjId &rhs)
 
int operator> (const ASN1TObjId &lhs, const char *dotted_oid_string)
 
int operator> (const ASN1OBJID &lhs, const ASN1OBJID &rhs)
 
int operator> (const ASN1OBJID &lhs, const char *dotted_oid_string)
 
int operator>= (const ASN1TObjId &lhs, const ASN1TObjId &rhs)
 
int operator>= (const ASN1TObjId &lhs, const char *dotted_oid_string)
 
int operator>= (const ASN1OBJID &lhs, const ASN1OBJID &rhs)
 
int operator>= (const ASN1OBJID &lhs, const char *dotted_oid_string)
 
ASN1TObjId operator+ (const ASN1TObjId &lhs, const ASN1TObjId &rhs)
 
int operator== (const ASN1TDynOctStr &lhs, const ASN1TDynOctStr &rhs)
 
int operator== (const ASN1TDynOctStr &lhs, const char *string)
 
int operator== (const ASN1DynOctStr &lhs, const ASN1DynOctStr &rhs)
 
int operator== (const ASN1DynOctStr &lhs, const char *string)
 
int operator!= (const ASN1TDynOctStr &lhs, const ASN1TDynOctStr &rhs)
 
int operator!= (const ASN1TDynOctStr &lhs, const char *string)
 
int operator!= (const ASN1DynOctStr &lhs, const ASN1DynOctStr &rhs)
 
int operator!= (const ASN1DynOctStr &lhs, const char *string)
 
int operator< (const ASN1TDynOctStr &lhs, const ASN1TDynOctStr &rhs)
 
int operator< (const ASN1TDynOctStr &lhs, const char *string)
 
int operator< (const ASN1DynOctStr &lhs, const ASN1DynOctStr &rhs)
 
int operator< (const ASN1DynOctStr &lhs, const char *string)
 
int operator<= (const ASN1TDynOctStr &lhs, const ASN1TDynOctStr &rhs)
 
int operator<= (const ASN1TDynOctStr &lhs, const char *string)
 
int operator<= (const ASN1DynOctStr &lhs, const ASN1DynOctStr &rhs)
 
int operator<= (const ASN1DynOctStr &lhs, const char *string)
 
int operator> (const ASN1TDynOctStr &lhs, const ASN1TDynOctStr &rhs)
 
int operator> (const ASN1TDynOctStr &lhs, const char *string)
 
int operator> (const ASN1DynOctStr &lhs, const ASN1DynOctStr &rhs)
 
int operator> (const ASN1DynOctStr &lhs, const char *string)
 
int operator>= (const ASN1TDynOctStr &lhs, const ASN1TDynOctStr &rhs)
 
int operator>= (const ASN1TDynOctStr &lhs, const char *string)
 
int operator>= (const ASN1DynOctStr &lhs, const ASN1DynOctStr &rhs)
 
int operator>= (const ASN1DynOctStr &lhs, const char *string)
 

Detailed Description

These classes are used as the base for compiler-generated ASN1T_ C++ data structures. These are enhanced versions of the C structures used for mapping ASN.1 types. The main difference is that constructors and operators have been added to the derived classes.

Function Documentation

◆ operator!=() [1/8]

int operator!= ( const ASN1TDynOctStr lhs,
const ASN1TDynOctStr rhs 
)

The inequality test operator: compares two dynamic octet strings to each other.

Parameters
lhsThe left-hand ASN1TDynOctStr class.
rhsThe right-hand ASN1TDynOctStr class.
Returns
1 if the two octet strings are equal; 0 otherwise.

Referenced by ASN1TDynOctStr::operator=().

◆ operator!=() [2/8]

int operator!= ( const ASN1TDynOctStr lhs,
const char *  string 
)

The inequality test operator: compares a dynamic octet string against a character string.

Parameters
lhsThe left-hand ASN1TDynOctStr class.
stringA character string to be compared against.
Returns
1 if the two strings are equal; 0 otherwise.

◆ operator!=() [3/8]

int operator!= ( const ASN1DynOctStr lhs,
const ASN1DynOctStr rhs 
)

The inequality test operator: compares two dynamic octet strings to each other.

Parameters
lhsThe left-hand ASN1DynOctStr class.
rhsThe right-hand ASN1DynOctStr structure.
Returns
1 if the two octet strings are equal; 0 otherwise.

◆ operator!=() [4/8]

int operator!= ( const ASN1TObjId lhs,
const ASN1TObjId rhs 
)

Overloaded not equal operator. This comparison operator allows for comparison of not equality of C++ based object identifier structure and a dotted string.

Parameters
lhs- C++ object identifier value.
rhs- C++ object identifier value
Returns
- True if values are equal.

Referenced by ASN1TObjId::ASN1TObjId(), ASN1TTime::setDER(), and ASN1CTime::setDER().

◆ operator!=() [5/8]

int operator!= ( const ASN1DynOctStr lhs,
const char *  string 
)

The inequality test operator: compares a dynamic octet string against a character string.

Parameters
lhsThe left-hand ASN1DynOctStr class.
stringA character string to be compared against.
Returns
1 if the two strings are equal; 0 otherwise.

◆ operator!=() [6/8]

int operator!= ( const ASN1OBJID lhs,
const ASN1OBJID rhs 
)

Overloaded not equal operator. This comparison operator allows for comparison of not equality of C based object identifier structure and a dotted string.

Parameters
lhs- C object identifier value.
rhs- C object identifier value
Returns
- True if values are equal.

◆ operator!=() [7/8]

int operator!= ( const ASN1OBJID lhs,
const char *  dotted_oid_string 
)

Overloaded not equal operator. This comparison operator allows for comparison of not equality of C based object identifier structure and a dotted string.

Parameters
lhs- C object identifier value.
dotted_oid_string- String containing OID value to compare.
Returns
- True if values are equal.

◆ operator!=() [8/8]

int operator!= ( const ASN1TObjId lhs,
const char *  dotted_oid_string 
)

Overloaded not equal operator. This comparison operator allows for comparison of not equality of C++ based object identifier structure and a dotted string.

Parameters
lhs- C++ object identifier value.
dotted_oid_string- String containing OID value to compare.
Returns
- True if values are equal.

◆ operator+()

ASN1TObjId operator+ ( const ASN1TObjId lhs,
const ASN1TObjId rhs 
)

Overloaded append + operator. This operator allows two Object Identifier values to be concatanated.

Parameters
lhs- C++ object identifier value.
rhs- C++ object identifier value.

Referenced by ASN1TObjId::ASN1TObjId().

◆ operator<() [1/8]

int operator< ( const ASN1TDynOctStr lhs,
const ASN1TDynOctStr rhs 
)

The less-than test operator: compares two dynamic octet strings to each other.

Parameters
lhsThe left-hand ASN1TDynOctStr class.
rhsThe right-hand ASN1TDynOctStr class.
Returns
1 if the two octet strings are equal; 0 otherwise.

Referenced by ASN1TDynOctStr::operator=().

◆ operator<() [2/8]

int operator< ( const ASN1TDynOctStr lhs,
const char *  string 
)

The less-than test operator: compares a dynamic octet string against a character string.

Parameters
lhsThe left-hand ASN1TDynOctStr class.
stringA character string to be compared against.
Returns
1 if the two strings are equal; 0 otherwise.

◆ operator<() [3/8]

int operator< ( const ASN1DynOctStr lhs,
const ASN1DynOctStr rhs 
)

The inequality test operator: compares two dynamic octet strings to each other.

Parameters
lhsThe left-hand ASN1DynOctStr class.
rhsThe right-hand ASN1DynOctStr structure.
Returns
1 if the two octet strings are equal; 0 otherwise.

◆ operator<() [4/8]

int operator< ( const ASN1TObjId lhs,
const ASN1TObjId rhs 
)

Overloaded less than < operator. This comparison operator allows for comparison of less than of C++ based object identifier structure and a dotted string.

Parameters
lhs- C++ object identifier value.
rhs- C++ object identifier value.
Returns
- True if values are equal.

Referenced by ASN1TObjId::ASN1TObjId(), ASN1TTime::setDER(), and ASN1CTime::setDER().

◆ operator<() [5/8]

int operator< ( const ASN1OBJID lhs,
const ASN1OBJID rhs 
)

Overloaded less than < operator. This comparison operator allows for comparison of less than of C based object identifier structure and a dotted string.

Parameters
lhs- C object identifier value.
rhs- C object identifier value.
Returns
- True if values are equal.

◆ operator<() [6/8]

int operator< ( const ASN1DynOctStr lhs,
const char *  string 
)

The inequality test operator: compares a dynamic octet string against a character string.

Parameters
lhsThe left-hand ASN1DynOctStr class.
stringA character string to be compared against.
Returns
1 if the two strings are equal; 0 otherwise.

◆ operator<() [7/8]

int operator< ( const ASN1OBJID lhs,
const char *  dotted_oid_string 
)

Overloaded less than < operator. This comparison operator allows for comparison of less than of C based object identifier structure and a dotted string.

Parameters
lhs- C object identifier value.
dotted_oid_string- String containing OID value to compare.
Returns
- True if values are equal.

◆ operator<() [8/8]

int operator< ( const ASN1TObjId lhs,
const char *  dotted_oid_string 
)

Overloaded less than < operator. This comparison operator allows for comparison of less than of C++ based object identifier structure and a dotted string.

Parameters
lhs- C++ object identifier value.
dotted_oid_string- String containing OID value to compare.
Returns
- True if values are equal.

◆ operator<=() [1/8]

int operator<= ( const ASN1TDynOctStr lhs,
const ASN1TDynOctStr rhs 
)

The less-equal test operator: compares two dynamic octet strings to each other.

Parameters
lhsThe left-hand ASN1TDynOctStr class.
rhsThe right-hand ASN1TDynOctStr class.
Returns
1 if the two octet strings are equal; 0 otherwise.

Referenced by ASN1TDynOctStr::operator=().

◆ operator<=() [2/8]

int operator<= ( const ASN1TDynOctStr lhs,
const char *  string 
)

The less-than test operator: compares a dynamic octet string against a character string.

Parameters
lhsThe left-hand ASN1TDynOctStr class.
stringA character string to be compared against.
Returns
1 if the two strings are equal; 0 otherwise.

◆ operator<=() [3/8]

int operator<= ( const ASN1TObjId lhs,
const ASN1TObjId rhs 
)

Overloaded less than <= operator. This comparison operator allows for comparison of less than of C++ based object identifier structure and a dotted string.

Parameters
lhs- C++ object identifier value.
rhs- C++ object identifier value
Returns
- True if values are equal.

Referenced by ASN1TObjId::ASN1TObjId(), ASN1TTime::setDER(), and ASN1CTime::setDER().

◆ operator<=() [4/8]

int operator<= ( const ASN1DynOctStr lhs,
const ASN1DynOctStr rhs 
)

The inequality test operator: compares two dynamic octet strings to each other.

Parameters
lhsThe left-hand ASN1DynOctStr class.
rhsThe right-hand ASN1DynOctStr structure.
Returns
1 if the two octet strings are equal; 0 otherwise.

◆ operator<=() [5/8]

int operator<= ( const ASN1OBJID lhs,
const ASN1OBJID rhs 
)

Overloaded less than <= operator. This comparison operator allows for comparison of less than of C based object identifier structure and a dotted string.

Parameters
lhs- C object identifier value.
rhs- C object identifier value
Returns
- True if values are equal.

◆ operator<=() [6/8]

int operator<= ( const ASN1DynOctStr lhs,
const char *  string 
)

The inequality test operator: compares a dynamic octet string against a character string.

Parameters
lhsThe left-hand ASN1DynOctStr class.
stringA character string to be compared against.
Returns
1 if the two strings are equal; 0 otherwise.

◆ operator<=() [7/8]

int operator<= ( const ASN1TObjId lhs,
const char *  dotted_oid_string 
)

Overloaded less than <= operator. This comparison operator allows for comparison of less than of a C++ based object identifier structure and a dotted string.

Parameters
lhs- C++ object identifier value.
dotted_oid_string- String containing OID value to compare.
Returns
- True if values are equal.

◆ operator<=() [8/8]

int operator<= ( const ASN1OBJID lhs,
const char *  dotted_oid_string 
)

Overloaded less than <= operator. This comparison operator allows for comparison of less than or equal of a C based object identifier structure and a dotted string.

Parameters
lhs- C object identifier value.
dotted_oid_string- String containing OID value to compare.
Returns
- True if values are equal.

◆ operator==() [1/6]

int operator== ( const ASN1TDynOctStr lhs,
const ASN1TDynOctStr rhs 
)

The equality test operator: compares two dynamic octet strings to each other.

Parameters
lhsThe left-hand ASN1TDynOctStr class.
rhsThe right-hand ASN1TDynOctStr class.
Returns
1 if the two octet strings are equal; 0 otherwise.

Referenced by ASN1TDynOctStr::operator=().

◆ operator==() [2/6]

int operator== ( const ASN1TDynOctStr lhs,
const char *  string 
)

The equality test operator: compares a dynamic octet string against a character string.

Parameters
lhsThe left-hand ASN1TDynOctStr class.
stringA character string to be compared against.
Returns
1 if the two strings are equal; 0 otherwise.

◆ operator==() [3/6]

int operator== ( const ASN1DynOctStr lhs,
const ASN1DynOctStr rhs 
)

The equality test operator: compares two dynamic octet strings to each other.

Parameters
lhsThe left-hand ASN1DynOctStr class.
rhsThe right-hand ASN1DynOctStr structure.
Returns
1 if the two octet strings are equal; 0 otherwise.

◆ operator==() [4/6]

int operator== ( const ASN1OBJID lhs,
const ASN1OBJID rhs 
)

This comparison operator allows for comparison of equality of two C-based object identifier structures.

Parameters
lhs- C object identifier value.
rhs- C object identifier value.
Returns
- True if values are equal.

Referenced by ASN1TObjId::ASN1TObjId(), ASN1TTime::setDER(), and ASN1CTime::setDER().

◆ operator==() [5/6]

int operator== ( const ASN1DynOctStr lhs,
const char *  string 
)

The equality test operator: compares a dynamic octet string against a character string.

Parameters
lhsThe left-hand ASN1DynOctStr class.
stringA character string to be compared against.
Returns
1 if the two strings are equal; 0 otherwise.

◆ operator==() [6/6]

int operator== ( const ASN1OBJID lhs,
const char *  dotted_oid_string 
)

This comparison operator allows for comparison of equality of a C-based object identifier structure and a dotted string.

Parameters
lhs- C object identifier value.
dotted_oid_string- String containing OID value to compare.
Returns
- True if values are equal.

◆ operator>() [1/8]

int operator> ( const ASN1TDynOctStr lhs,
const ASN1TDynOctStr rhs 
)

The greater-than test operator: compares two dynamic octet strings to each other.

Parameters
lhsThe left-hand ASN1TDynOctStr class.
rhsThe right-hand ASN1TDynOctStr class.
Returns
1 if the two octet strings are equal; 0 otherwise.

Referenced by ASN1TDynOctStr::operator=().

◆ operator>() [2/8]

int operator> ( const ASN1TDynOctStr lhs,
const char *  string 
)

The greater-than test operator: compares a dynamic octet string against a character string.

Parameters
lhsThe left-hand ASN1TDynOctStr class.
stringA character string to be compared against.
Returns
1 if the two strings are equal; 0 otherwise.

◆ operator>() [3/8]

int operator> ( const ASN1TObjId lhs,
const ASN1TObjId rhs 
)

Overloaded greater than > operator. This comparison operator allows for comparison of greater than of C++ based object identifier structures

Parameters
lhs- C++ object identifier value.
rhs- C++ object identifier value.
Returns
- True if values are equal.

Referenced by ASN1TObjId::ASN1TObjId(), ASN1TTime::setDER(), and ASN1CTime::setDER().

◆ operator>() [4/8]

int operator> ( const ASN1DynOctStr lhs,
const ASN1DynOctStr rhs 
)

The inequality test operator: compares two dynamic octet strings to each other.

Parameters
lhsThe left-hand ASN1DynOctStr class.
rhsThe right-hand ASN1DynOctStr structure.
Returns
1 if the two octet strings are equal; 0 otherwise.

◆ operator>() [5/8]

int operator> ( const ASN1TObjId lhs,
const char *  dotted_oid_string 
)

Overloaded greater than > operator. This comparison operator allows for comparison of greater than of a C++ based object identifier structure and a dotted string.

Parameters
lhs- C++ object identifier value.
dotted_oid_string- String containing OID value to compare.
Returns
- True if values are equal.

◆ operator>() [6/8]

int operator> ( const ASN1DynOctStr lhs,
const char *  string 
)

The inequality test operator: compares a dynamic octet string against a character string.

Parameters
lhsThe left-hand ASN1DynOctStr class.
stringA character string to be compared against.
Returns
1 if the two strings are equal; 0 otherwise.

◆ operator>() [7/8]

int operator> ( const ASN1OBJID lhs,
const ASN1OBJID rhs 
)

Overloaded greater than > operator. This comparison operator allows for comparison of greater than of C based object identifier structures.

Parameters
lhs- C object identifier value.
rhs- C object identifier value.
Returns
- True if values are equal.

◆ operator>() [8/8]

int operator> ( const ASN1OBJID lhs,
const char *  dotted_oid_string 
)

Overloaded greater than > operator. This comparison operator allows for comparison of greater than of a C based object identifier structure and a dotted string.

Parameters
lhs- C object identifier value.
dotted_oid_string- String containing OID value to compare.
Returns
- True if values are equal.

◆ operator>=() [1/8]

int operator>= ( const ASN1TDynOctStr lhs,
const ASN1TDynOctStr rhs 
)

The greater-equal test operator: compares two dynamic octet strings to each other.

Parameters
lhsThe left-hand ASN1TDynOctStr class.
rhsThe right-hand ASN1TDynOctStr class.
Returns
1 if the two octet strings are equal; 0 otherwise.

Referenced by ASN1TDynOctStr::operator=().

◆ operator>=() [2/8]

int operator>= ( const ASN1TDynOctStr lhs,
const char *  string 
)

The less-than test operator: compares a dynamic octet string against a character string.

Parameters
lhsThe left-hand ASN1TDynOctStr class.
stringA character string to be compared against.
Returns
1 if the two strings are equal; 0 otherwise.

◆ operator>=() [3/8]

int operator>= ( const ASN1TObjId lhs,
const ASN1TObjId rhs 
)

Overloaded greater than equal >= operator. This comparison operator allows for comparison of greater than or equal of C++ based object identifier structures.

Parameters
lhs- C++ object identifier value.
rhs- C++ object identifier value.
Returns
- True if values are equal.

Referenced by ASN1TObjId::ASN1TObjId(), ASN1TTime::setDER(), and ASN1CTime::setDER().

◆ operator>=() [4/8]

int operator>= ( const ASN1DynOctStr lhs,
const ASN1DynOctStr rhs 
)

The inequality test operator: compares two dynamic octet strings to each other.

Parameters
lhsThe left-hand ASN1DynOctStr class.
rhsThe right-hand ASN1DynOctStr structure.
Returns
1 if the two octet strings are equal; 0 otherwise.

◆ operator>=() [5/8]

int operator>= ( const ASN1TObjId lhs,
const char *  dotted_oid_string 
)

Overloaded greater than equal >= operator. This comparison operator allows for comparison of greater than or equal of a C++ based object identifier structure and a dotted string.

Parameters
lhs- C++ object identifier value.
dotted_oid_string- String containing OID value to compare.
Returns
- True if values are equal.

◆ operator>=() [6/8]

int operator>= ( const ASN1DynOctStr lhs,
const char *  string 
)

The inequality test operator: compares a dynamic octet string against a character string.

Parameters
lhsThe left-hand ASN1DynOctStr class.
stringA character string to be compared against.
Returns
1 if the two strings are equal; 0 otherwise.

◆ operator>=() [7/8]

int operator>= ( const ASN1OBJID lhs,
const ASN1OBJID rhs 
)

Overloaded greater than equal >= operator. This comparison operator allows for comparison of greater than or equal of C based object identifier structures.

Parameters
lhs- C object identifier value.
rhs- C object identifier value.
Returns
- True if values are equal.

◆ operator>=() [8/8]

int operator>= ( const ASN1OBJID lhs,
const char *  dotted_oid_string 
)

Overloaded greater than equal >= operator. This comparison operator allows for comparison of greater than or equal of a C based object identifier structure and a dotted string.

Parameters
lhs- C object identifier value.
dotted_oid_string- String containing OID value to compare.
Returns
- True if values are equal.