|
Yate
|
Class for ASN.1 tags. More...
#include <yateasn.h>
Public Types | |
| enum | Class { Universal = 0x00, Application = 0x40, Context = 0x80, Private = 0xc0 } |
| enum | Type { Primitive = 0x00, Constructor = 0x20 } |
Public Member Functions | |
| AsnTag () | |
| AsnTag (Class clas, Type type, unsigned int code) | |
| ~AsnTag () | |
| void | encode () |
| bool | operator== (const AsnTag &tag) const |
| bool | operator!= (const AsnTag &tag) const |
| AsnTag & | operator= (const AsnTag &value) |
| const Class | classType () const |
| void | classType (Class clas) |
| const Type | type () const |
| void | type (Type type) |
| const unsigned int | code () const |
| void | code (unsigned int code) |
| const DataBlock & | coding () const |
Static Public Member Functions | |
| static void | decode (AsnTag &tag, DataBlock &data) |
| static void | encode (Class clas, Type type, unsigned int code, DataBlock &data) |
Class for ASN.1 tags.
Class AsnTag
| enum Class |
ASN.1 Tag class types enum
| enum Type |
ASN.1 Type of tag enum
| AsnTag | ( | ) | [inline] |
Constructor
Constructor
| clas | Class of the ASN.1 Tag |
| type | Type of the ASN.1 Tag |
| code | Code ot the ASN.1 Tag |
References AsnTag::encode().
| ~AsnTag | ( | ) | [inline] |
Destructor
Get the tag class
Referenced by AsnTag::operator!=(), AsnTag::operator=(), and AsnTag::operator==().
| const unsigned int code | ( | ) | const [inline] |
Get the tag code
Referenced by AsnTag::operator!=(), AsnTag::operator=(), and AsnTag::operator==().
| void code | ( | unsigned int | code | ) | [inline] |
Set the tag code
| code | The code to set for the tag |
References AsnTag::code().
Referenced by AsnTag::code().
Get the tag encoding
Decode an ASN.1 tag from the given data
| tag | Tag to fill |
| data | Data from which the tag should be filled |
Encode an ASN.1 tag and put the encoded form into the given data
| clas | Class of the tag |
| type | Type of the tag |
| code | Tag code |
| data | DataBlock into which to insert the encoded tag |
| void encode | ( | ) | [inline] |
Encode self
Referenced by AsnTag::AsnTag(), and AsnTag::operator=().
| bool operator!= | ( | const AsnTag & | tag | ) | const [inline] |
Inequality operator
References AsnTag::classType(), AsnTag::code(), and AsnTag::type().
Assignment operator
References AsnTag::classType(), AsnTag::code(), AsnTag::encode(), and AsnTag::type().
| bool operator== | ( | const AsnTag & | tag | ) | const [inline] |
Equality operator
References AsnTag::classType(), AsnTag::code(), and AsnTag::type().
Get the tag type
Referenced by AsnTag::operator!=(), AsnTag::operator=(), and AsnTag::operator==().
Set the tag type
| type | The type to set for the tag |
References AsnTag::type().
Referenced by AsnTag::type().
1.7.6.1