|
| | Item (bool Lock, XrdSysMutex &valU) |
| | Item (const char *keyN, const char *valU) |
| | Item (const char *keyN, double &valU) |
| | Item (const char *keyN, float &valU) |
| | Item (const char *keyN, RAtomic_int16_t &valU) |
| | Item (const char *keyN, RAtomic_int32_t &valU) |
| | Item (const char *keyN, RAtomic_int64_t &valU) |
| | Item (const char *keyN, RAtomic_int8_t &valU) |
| | Item (const char *keyN, RAtomic_uint16_t &valU) |
| | Item (const char *keyN, RAtomic_uint32_t &valU) |
| | Item (const char *keyN, RAtomic_uint64_t &valU) |
| | Item (const char *keyN, RAtomic_uint8_t &valU) |
| | Item (const char *keyN, Schema valU) |
| | Item (const char *keyN, std::string &valU) |
| template<typename T> |
| | Item (const char *keyN, T &valU) |
The Item class is used to define a set of variables that will be registered with this class. These variables are reported in the summary. The class is a more general implementation of setMember (see below).
- Parameters
-
| keyN | - Is the name of the key and becomes the XML tag or the JSON key for the reported value. It may only be nil or the empty string within the context of an array Schema; but if specified, it is used as the XML tag for the value and is ignored for JSON. If not specified, the XML tag becomes "item". Hence, if you care about XML you should specify a meaningful key. Note that outside of an array a key is always required. |
| valU | - the reference to the associated variable holding the value or, for Schema, a schema enum type. |
Definition at line 72 of file XrdMonRoll.hh.
The following enum may be passed to define a substructure, as follows: enum JSON XML begArray "keyN" : [ <keyN> endArray ] </keyN> begObject "keyN" : { <keyN> endObject } </varn>
@notes 1) A variable name must always begin an array or object when one appears in object context. However, elements in a JSON array do not have keys keys so the key is only used when generating XML and is otherwise ignored. 2) When a key is specified for an endArray or endObject, it must match the key in the corresponding beg element. If not specicied, the key from the corresponding beg element is used.
| Enumerator |
|---|
| unk | |
| begArray | |
| endArray | |
| begObject | |
| endObject | |
Definition at line 95 of file XrdMonRoll.hh.
95: char {unk=0, begArray, endArray, begObject, endObject};