|
Jpp
19.1.0
the software that should make you happy
|
ControlHost prefix. More...
#include <JPrefix.hh>
Public Member Functions | |
| JPrefix () | |
| Default constructor. More... | |
| JPrefix (const JTag &tag, const long long int length) | |
| Constructor. More... | |
| int | getSize () const |
| Get size. More... | |
| void | setSize (const long long int length) |
| Set size. More... | |
| void | set (const JTag &tag, const long long int length) |
| Set prefix. More... | |
| const JTag & | getTag () const |
| Get tag. More... | |
| JTag & | getTag () |
| Get tag. More... | |
| void | setTag (const JTag &tag) |
| Set tag. More... | |
| void | setTag (const std::string &tag) |
| Set tag. More... | |
| void | setTag (const JTag_t id) |
| Set tag. More... | |
| JTag_t | getID () const |
| Get identifier. More... | |
| std::string | toString () const |
| Convert tag to string. More... | |
| operator std::string () const | |
| Type conversion operators. More... | |
| const char * | c_str () const |
| C-string. More... | |
| const char | operator[] (int i) const |
| Get character. More... | |
Protected Attributes | |
| long long int | size |
| JTag_t | id |
ControlHost prefix.
The ControlHost prefix is a light-weight data structure which consists of a tag and a length. The length is converted to network byte order and vice versa, using methods setSize() and getSize(), respectively.
Definition at line 31 of file JPrefix.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Set tag.
This method may throw an exception.
| tag | tag |
Definition at line 121 of file JTag.hh.
|
inlineinherited |
Set tag.
| id | identifier |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
protected |
Definition at line 92 of file JPrefix.hh.