class AsnTag

Class for ASN.1 tags. More...

Full nameTelEngine::AsnTag
Definition#include <libs/yasn/yateasn.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Public Static Methods


Detailed Description

Class AsnTag

enum Class { Universal = 0x00, Application = 0x40, Context = 0x80, Private = 0xc0, }

Class

ASN.1 Tag class types enum

enum Type { Primitive = 0x00, Constructor = 0x20, }

Type

ASN.1 Type of tag enum

inline  AsnTag ()

AsnTag

Constructor

inline  AsnTag (Class clas, Type type, unsigned int code)

AsnTag

Constructor

Parameters:
clasClass of the ASN.1 Tag
typeType of the ASN.1 Tag
codeCode ot the ASN.1 Tag

inline  ~AsnTag ()

~AsnTag

Destructor

void  decode (AsnTag& tag, DataBlock& data)

decode

[static]

Decode an ASN.1 tag from the given data

Parameters:
tagTag to fill
dataData from which the tag should be filled

void  encode (Class clas, Type type, unsigned int code, DataBlock& data)

encode

[static]

Encode an ASN.1 tag and put the encoded form into the given data

Parameters:
clasClass of the tag
typeType of the tag
codeTag code
dataDataBlock into which to insert the encoded tag

inline void  encode ()

encode

Encode self

inline bool  operator== (const AsnTag& tag)

operator==

[const]

Equality operator

inline bool  operator!= (const AsnTag& tag)

operator!=

[const]

Inequality operator

inline AsnTag&  operator= (const AsnTag& value)

operator=

Assignment operator

inline const Class  classType ()

classType

[const]

Get the tag class

Returns: The class of the tag

inline void  classType (Class clas)

classType

Set the tag class

Parameters:
clasThe clas to set for the tag

inline const Type  type ()

type

[const]

Get the tag type

Returns: The type of the tag

inline void  type (Type type)

type

Set the tag type

Parameters:
typeThe type to set for the tag

inline const unsigned int  code ()

code

[const]

Get the tag code

Returns: The code of the tag

inline void  code (unsigned int code)

code

Set the tag code

Parameters:
codeThe code to set for the tag

inline const DataBlock&  coding ()

coding

[const]

Get the tag encoding

Returns: The DataBlock containing the encoding for the tag


Generated by: paulc on bussard on Mon Feb 10 13:15:47 2014, using kdoc 2.0a54.