Go to the documentation of this file. 1 #ifndef __JNET__JCONTROLHOSTTAG__
2 #define __JNET__JCONTROLHOSTTAG__
18 namespace JPP {
using namespace JNET; }
84 return static_cast<const JTag&>(*
this);
95 return static_cast<JTag&>(*
this);
123 for ( ; i <
tag.size(); ++i) {
124 this->tag[i] =
tag[i];
171 while (pos != 0 &&
tag[pos-1] ==
'\0') {
175 return std::string(
tag, pos);
184 inline operator std::string()
const
225 object.setTag(buffer);
241 return out <<
object.toString();
347 static JBig JTest(...);
static const JTag DISPTAG_Debug("_Debug")
long long int JTag_t
Type definition of numerical ControlHost tag.
bool setID(const JTag_t id)
Set identifier.
Auxiliary class for a type holder.
static const JTag DISPTAG_Subscribe("_Subscri")
Special ControlHost tags.
JTag()
Default constructor.
static const JTag DISPTAG_Version("_Version")
Exception for ControlHost.
JNET::JTag getTag()
Template definition for method returning JTag value.
static const JTag DISPTAG_WhereIs("_WhereIs")
bool operator!=(const JTag &first, const JTag &second)
Not equal operator for JTag.
Auxiliary class for no type definition.
const JTag & getTag() const
Get tag.
Interprocess communication.
const char * c_str() const
C-string.
void setTag(const JTag &tag)
Set tag.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
void setTag(const std::string &tag)
Set tag.
static const JTag DISPTAG_Always("_Always")
JTag(const JTag &tag)
Copy constructor.
bool operator<(const JTag &first, const JTag &second)
Less than operator for JTag.
JTag(const std::string &tag)
Constructor.
JTag_t getID() const
Get identifier.
static const JTag DISPTAG_Died("Died")
Test availability of JTag value for given class.
const char operator[](int i) const
Get character.
static const JTag DISPTAG_UNDEFINED(0)
JTag(const JTag_t id)
Constructor.
static const JTag DISPTAG_Born("Born")
static const size_t TAGSIZE
std::string toString() const
Convert tag to string.
static const JTag DISPTAG_ShowStat("_ShowSta")
friend std::ostream & operator<<(std::ostream &out, const JTag &object)
Write JTag to output stream.
static const JTag DISPTAG_MyId("_MyId")
bool operator==(const JTag &first, const JTag &second)
Equal operator for JTag.
static const JTag DISPTAG_Gime("_Gime")
friend std::istream & operator>>(std::istream &in, JTag &object)
Read JTag from input stream.