Jpp
15.0.4
the software that should make you happy
|
Data structure of a ControlHost message. More...
Public Types | |
typedef JMalloc< char > | JMemory_t |
Public Member Functions | |
JDispatch () | |
Default constructor. More... | |
JDispatch (const JPrefix_t &prefix, const char *data) | |
Constructor. More... | |
JDispatch (const JTag &tag, const std::string &message) | |
Constructor. More... | |
JDispatch (const JDispatch &message) | |
Copy constructor. More... | |
~JDispatch () | |
Destructor. More... | |
JDispatch & | operator= (const JDispatch &message) |
Assignment operator. More... | |
operator JSocketOutputBuffer () const | |
Type conversion operator. More... | |
int | size () const |
Get size. More... | |
const char * | data () const |
Get data. 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... | |
void | initialise () |
Initialise counter. More... | |
void | attach (const JSharedCounter &object) |
Attach this counter to given shared counter object. More... | |
bool | detach () |
Detach. More... | |
const int | getCount () |
Get count. More... | |
Static Public Attributes | |
static long long int | MEMORY_TOTAL = 0 |
Total size of data [Bytes]. More... | |
static long long int | MEMORY_LIMIT |
Limit size of data [Bytes]. More... | |
Protected Member Functions | |
void | create () |
Allocate memory. More... | |
void | release () |
Release memory. More... | |
Protected Attributes | |
char * | buffer |
long long int | size |
JTag_t | id |
int * | counter |
Data structure of a ControlHost message.
This data structure consists of a copy of the ControlHost prefix and an array of bytes (including the ControlHost prefix). A new array of bytes is created by the appropriate constructor. The allocated memory is released upon destruction of the last object of this class.
Definition at line 64 of file JLigier.cc.
typedef JMalloc<char> JNET::JDispatch::JMemory_t |
Definition at line 70 of file JLigier.cc.
|
inline |
|
inline |
Constructor.
Note that the input data should contain a copy of the prefix.
prefix | prefix |
data | data |
Definition at line 92 of file JLigier.cc.
|
inline |
Constructor.
Note that the given message is appended to a copy of the prefix.
tag | tag |
message | message |
Definition at line 110 of file JLigier.cc.
|
inline |
|
inline |
Assignment operator.
message | message |
Definition at line 155 of file JLigier.cc.
|
inline |
Type conversion operator.
Definition at line 177 of file JLigier.cc.
|
inline |
Get size.
Definition at line 188 of file JLigier.cc.
|
inline |
|
inlineprotected |
Allocate memory.
Definition at line 209 of file JLigier.cc.
|
inlineprotected |
Release memory.
Definition at line 229 of file JLigier.cc.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Set prefix.
tag | tag |
length | number of bytes |
Definition at line 86 of file JPrefix.hh.
|
inlineinherited |
|
inlineinherited |
Get tag.
|
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 |
Get identifier.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
C-string.
|
inlineinherited |
|
inlineinherited |
Initialise counter.
Definition at line 33 of file JSharedCounter.hh.
|
inlineinherited |
Attach this counter to given shared counter object.
object | shared counter |
Definition at line 46 of file JSharedCounter.hh.
|
inlineinherited |
|
inlineinherited |
|
static |
|
static |
|
protected |
Definition at line 236 of file JLigier.cc.
|
protectedinherited |
Definition at line 93 of file JPrefix.hh.
|
protectedinherited |
Definition at line 94 of file JSharedCounter.hh.