Jpp test-rotations-new
the software that should make you happy
|
ControlHost prefix. More...
#include <JPrefix.hh>
Public Member Functions | |
JPrefix () | |
Default constructor. | |
JPrefix (const JTag &tag, const long long int length) | |
Constructor. | |
int | getSize () const |
Get size. | |
void | setSize (const long long int length) |
Set size. | |
void | set (const JTag &tag, const long long int length) |
Set prefix. | |
const JTag & | getTag () const |
Get tag. | |
JTag & | getTag () |
Get tag. | |
void | setTag (const JTag &tag) |
Set tag. | |
void | setTag (const std::string &tag) |
Set tag. | |
void | setTag (const JTag_t id) |
Set tag. | |
JTag_t | getID () const |
Get identifier. | |
std::string | toString () const |
Convert tag to string. | |
operator std::string () const | |
Type conversion operators. | |
const char * | c_str () const |
C-string. | |
const char | operator[] (int i) const |
Get character. | |
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 |
Constructor.
tag | tag |
length | number of bytes |
Definition at line 50 of file JPrefix.hh.
|
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.