ControlHost tag.
More...
#include <JTag.hh>
ControlHost tag.
Definition at line 35 of file JTag.hh.
◆ JTag() [1/4]
Default constructor.
Definition at line 40 of file JTag.hh.
◆ JTag() [2/4]
JNET::JTag::JTag |
( |
const JTag & |
tag | ) |
|
|
inline |
Copy constructor.
- Parameters
-
Definition at line 49 of file JTag.hh.
◆ JTag() [3/4]
JNET::JTag::JTag |
( |
const std::string & |
tag | ) |
|
|
inline |
Constructor.
- Parameters
-
Definition at line 60 of file JTag.hh.
◆ JTag() [4/4]
JNET::JTag::JTag |
( |
const JTag_t |
id | ) |
|
|
inline |
Constructor.
- Parameters
-
Definition at line 71 of file JTag.hh.
◆ getTag() [1/2]
const JTag& JNET::JTag::getTag |
( |
| ) |
const |
|
inline |
Get tag.
- Returns
- tag
Definition at line 82 of file JTag.hh.
84 return static_cast<const JTag&>(*
this);
◆ getTag() [2/2]
JTag& JNET::JTag::getTag |
( |
| ) |
|
|
inline |
Get tag.
- Returns
- tag
Definition at line 93 of file JTag.hh.
95 return static_cast<JTag&>(*
this);
◆ setTag() [1/2]
void JNET::JTag::setTag |
( |
const JTag & |
tag | ) |
|
|
inline |
Set tag.
- Parameters
-
- Returns
- true if OK; else false
Definition at line 105 of file JTag.hh.
◆ setTag() [2/2]
void JNET::JTag::setTag |
( |
const std::string & |
tag | ) |
|
|
inline |
Set tag.
- Parameters
-
- Returns
- true if OK; else false
Definition at line 117 of file JTag.hh.
123 for ( ; i <
tag.size(); ++i) {
133 return throw(JControlHostException(
"JTag::setTag() invalid tag length."));
◆ getID()
JTag_t JNET::JTag::getID |
( |
| ) |
const |
|
inline |
Get identifier.
- Returns
- identifier
Definition at line 143 of file JTag.hh.
◆ setID()
bool JNET::JTag::setID |
( |
const JTag_t |
id | ) |
|
|
inline |
Set identifier.
- Returns
- identifier
Definition at line 154 of file JTag.hh.
◆ toString()
std::string JNET::JTag::toString |
( |
| ) |
const |
|
inline |
Convert tag to string.
- Returns
- tag
Definition at line 167 of file JTag.hh.
171 while (pos != 0 &&
tag[pos-1] ==
'\0') {
175 return std::string(
tag, pos);
◆ operator std::string()
JNET::JTag::operator std::string |
( |
| ) |
const |
|
inline |
Type conversion operators.
- Returns
- tag
Definition at line 184 of file JTag.hh.
◆ c_str()
const char* JNET::JTag::c_str |
( |
| ) |
const |
|
inline |
C-string.
- Returns
- tag
Definition at line 195 of file JTag.hh.
◆ operator[]()
const char JNET::JTag::operator[] |
( |
int |
i | ) |
const |
|
inline |
Get character.
- Parameters
-
- Returns
- character at index
Definition at line 207 of file JTag.hh.
◆ operator>>
std::istream& operator>> |
( |
std::istream & |
in, |
|
|
JTag & |
object |
|
) |
| |
|
friend |
Read JTag from input stream.
- Parameters
-
in | input stream |
object | JTag |
- Returns
- input stream
Definition at line 220 of file JTag.hh.
225 object.setTag(buffer);
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const JTag & |
object |
|
) |
| |
|
friend |
Write JTag to output stream.
- Parameters
-
out | output stream |
object | JTag |
- Returns
- output stream
Definition at line 239 of file JTag.hh.
241 return out <<
object.toString();
◆ tag
◆ id
◆ @47
The documentation for this class was generated from the following file: