Auxiliary class for any subscription.
More...
#include <JControlHost.hh>
Auxiliary class for any subscription.
Definition at line 114 of file JControlHost.hh.
JNET::JSubscriptionAny::JSubscriptionAny |
( |
const JTag & |
tag | ) |
|
|
inline |
Constructor.
- Parameters
-
Definition at line 122 of file JControlHost.hh.
JSubscription(const JSubscription_t sub, const JTag &tag)
Constructor.
Get subscription type.
- Returns
- subscription
Definition at line 72 of file JControlHost.hh.
JSubscription_t subscription
Convert subscription to string.
- Returns
- subscription
Definition at line 83 of file JControlHost.hh.
std::string toString() const
Convert tag to string.
JSubscription_t subscription
const JTag& JNET::JTag::getTag |
( |
| ) |
const |
|
inlineinherited |
Get tag.
- Returns
- tag
Definition at line 86 of file JTag.hh.
88 return static_cast<const JTag&
>(*this);
JTag& JNET::JTag::getTag |
( |
| ) |
|
|
inlineinherited |
Get tag.
- Returns
- tag
Definition at line 97 of file JTag.hh.
99 return static_cast<JTag&
>(*this);
void JNET::JTag::setTag |
( |
const JTag & |
tag | ) |
|
|
inlineinherited |
Set tag.
- Parameters
-
Definition at line 108 of file JTag.hh.
JTag_t getID() const
Get identifier.
Set tag.
This method may throw an exception.
- Parameters
-
Definition at line 121 of file JTag.hh.
123 if (!tag.empty() && tag.size() <=
TAGSIZE) {
125 char* __p = (
char*) &(this->
id);
129 for ( ; i != tag.size(); ++
i) {
139 THROW(JControlHostException,
"Invalid tag length <" << tag <<
"> " << tag.size());
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
static const size_t TAGSIZE
Size of ControlHost tag.
void JNET::JTag::setTag |
( |
const JTag_t |
id | ) |
|
|
inlineinherited |
Set tag.
- Parameters
-
Definition at line 149 of file JTag.hh.
JTag_t JNET::JTag::getID |
( |
| ) |
const |
|
inlineinherited |
Get identifier.
- Returns
- identifier
Definition at line 160 of file JTag.hh.
Type conversion operators.
- Returns
- tag
Definition at line 190 of file JTag.hh.
std::string toString() const
Convert tag to string.
const char* JNET::JTag::c_str |
( |
| ) |
const |
|
inlineinherited |
C-string.
- Returns
- tag
Definition at line 201 of file JTag.hh.
203 return (
const char*) &(this->
id);
const char JNET::JTag::operator[] |
( |
int |
i | ) |
const |
|
inlineinherited |
Get character.
- Parameters
-
- Returns
- character at index
Definition at line 213 of file JTag.hh.
215 const char* __p = (
const char*) &(this->
id);
The documentation for this struct was generated from the following file: