#include <cttlv.h>
Public Member Functions | |
CTTLV () | |
CTTLV (const string &s, unsigned int &pos, bool simple=false) | |
CTTLV (unsigned int tag, unsigned int cl, bool cstrc, string d) | |
CTTLV (unsigned int tag, string d) | |
~CTTLV () | |
unsigned int | getTag () const |
unsigned int | getLength () const |
string | getValue () const |
unsigned int | getSize () const |
bool | isValid () const |
bool | isConstructed () const |
bool | isSimple () const |
unsigned int | getClass () const |
string | toString () |
|
|
|
Constructor for a tag from a string.
|
|
Constructor for a BER-TLV tag. A BER_TLV tag is a rather advanced tag compared to Simple-TLV. Such a tag contains information about the class this tag belongs to, or if this tag consists of sub tags. |
|
Constructor for a Simple-TLV tag. A Simple-TLV tag has no encodings for the class type, it is very simple. |
|
|
|
This is only usefull with BER-TLV tags, since Simple-TLV tags don't have classes. |
|
|
|
|
|
|
|
|
|
This is only usefull with BER-TLV tags, since Simple-TLV tags don't tell if they are constructed. Constructed means that this tag is assumed to have sub tags in it. |
|
|
|
|
|
Writes the content of this tag into a string. |