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);
119 if (!tag.empty() && tag.size() <=
TAGSIZE) {
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_Subscribe("_Subscri")
Special ControlHost tags.
Test availability of JTag value for given class.
static const JTag DISPTAG_Died("Died")
JTag(const JTag &tag)
Copy constructor.
const char * c_str() const
C-string.
bool operator<(const Head &first, const Head &second)
Less than operator.
JTag()
Default constructor.
static const JTag DISPTAG_MyId("_MyId")
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
static const JTag DISPTAG_WhereIs("_WhereIs")
Auxiliary class for a type holder.
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
static const JTag DISPTAG_Version("_Version")
const char operator[](int i) const
Get character.
friend std::ostream & operator<<(std::ostream &out, const JTag &object)
Write JTag to output stream.
bool operator==(Packet const &p, ID const &id)
friend std::istream & operator>>(std::istream &in, JTag &object)
Read JTag from input stream.
JTag_t getID() const
Get identifier.
void setTag(const JTag &tag)
Set tag.
JTag(const std::string &tag)
Constructor.
Auxiliary class for no type definition.
static const size_t TAGSIZE
static const JTag DISPTAG_UNDEFINED(0)
long long int JTag_t
Type definition of numerical ControlHost tag.
bool setID(const JTag_t id)
Set identifier.
Exception for ControlHost.
void setTag(const std::string &tag)
Set tag.
const JTag & getTag() const
Get tag.
static const JTag DISPTAG_Born("Born")
std::string toString() const
Convert tag to string.
JTag(const JTag_t id)
Constructor.
static const JTag DISPTAG_Gime("_Gime")
JNullType operator!=(JAnyType, JAnyType)
static const JTag DISPTAG_Debug("_Debug")
static const JTag DISPTAG_Always("_Always")
static const JTag DISPTAG_ShowStat("_ShowSta")