|
ROOTANA
|
Access to ODB saved in JSON format inside midas .mid files. More...


Public Member Functions | |
| JsonOdb (MJsonNode *root, const MJsonNode *dir, MVOdbError *error) | |
| ~JsonOdb () | |
| void | SetPrintError (bool v) |
| bool | GetPrintError () const |
| void | SetNotFound (MVOdbError *error, const char *varname) |
| void | SetVarError (MVOdbError *error, const char *varname, std::string msg) |
| void | SetWrongType (MVOdbError *error, const char *varname, const MJsonNode *node, const char *wanted_type) |
| bool | IsReadOnly () const |
| template<typename T > | |
| bool | GetJsonValue (const char *varname, const MJsonNode *node, T *value, MVOdbError *error) |
| MVOdb * | Chdir (const char *subdir, bool create, MVOdbError *error) |
| void | ReadKey (const char *varname, int *tid, int *num_values, int *total_size, int *item_size, MVOdbError *error) |
| void | ReadKeyLastWritten (const char *varname, int *last_written, MVOdbError *error) |
| void | ReadDir (std::vector< std::string > *varname, std::vector< int > *tid, std::vector< int > *num_values, std::vector< int > *total_size, std::vector< int > *item_size, MVOdbError *error) |
| void | RB (const char *varname, bool *value, bool create, MVOdbError *error) |
| void | RI (const char *varname, int *value, bool create, MVOdbError *error) |
| void | RD (const char *varname, double *value, bool create, MVOdbError *error) |
| void | RF (const char *varname, float *value, bool create, MVOdbError *error) |
| void | RS (const char *varname, std::string *value, bool create, int create_string_length, MVOdbError *error) |
| void | RU16 (const char *varname, uint16_t *value, bool create, MVOdbError *error) |
| void | RU32 (const char *varname, uint32_t *value, bool create, MVOdbError *error) |
| void | RU64 (const char *varname, uint64_t *value, bool create, MVOdbError *error) |
| template<typename T > | |
| void | RXA (const char *varname, std::vector< T > *value, MVOdbError *error) |
| void | RBA (const char *varname, std::vector< bool > *value, bool create, int create_size, MVOdbError *error) |
| void | RIA (const char *varname, std::vector< int > *value, bool create, int create_size, MVOdbError *error) |
| void | RDA (const char *varname, std::vector< double > *value, bool create, int create_size, MVOdbError *error) |
| void | RFA (const char *varname, std::vector< float > *value, bool create, int create_size, MVOdbError *error) |
| void | RSA (const char *varname, std::vector< std::string > *value, bool create, int create_size, int create_string_length, MVOdbError *error) |
| void | RU16A (const char *varname, std::vector< uint16_t > *value, bool create, int create_size, MVOdbError *error) |
| void | RU32A (const char *varname, std::vector< uint32_t > *value, bool create, int create_size, MVOdbError *error) |
| void | RU64A (const char *varname, std::vector< uint64_t > *value, bool create, int create_size, MVOdbError *error) |
| template<typename T > | |
| void | RXAI (const char *varname, int index, T *value, MVOdbError *error) |
| void | RBAI (const char *varname, int index, bool *value, MVOdbError *error) |
| void | RIAI (const char *varname, int index, int *value, MVOdbError *error) |
| void | RDAI (const char *varname, int index, double *value, MVOdbError *error) |
| void | RFAI (const char *varname, int index, float *value, MVOdbError *error) |
| void | RSAI (const char *varname, int index, std::string *value, MVOdbError *error) |
| void | RU16AI (const char *varname, int index, uint16_t *value, MVOdbError *error) |
| void | RU32AI (const char *varname, int index, uint32_t *value, MVOdbError *error) |
| void | RU64AI (const char *varname, int index, uint64_t *value, MVOdbError *error) |
| void | WB (const char *varname, bool v, MVOdbError *error) |
| void | WI (const char *varname, int v, MVOdbError *error) |
| void | WD (const char *varname, double v, MVOdbError *error) |
| void | WF (const char *varname, float v, MVOdbError *error) |
| void | WS (const char *varname, const char *v, int string_length, MVOdbError *error) |
| void | WU16 (const char *varname, uint16_t v, MVOdbError *error) |
| void | WU32 (const char *varname, uint32_t v, MVOdbError *error) |
| void | WU64 (const char *varname, uint64_t v, MVOdbError *error) |
| void | WBA (const char *varname, const std::vector< bool > &v, MVOdbError *error) |
| void | WIA (const char *varname, const std::vector< int > &v, MVOdbError *error) |
| void | WDA (const char *varname, const std::vector< double > &v, MVOdbError *error) |
| void | WFA (const char *varname, const std::vector< float > &v, MVOdbError *error) |
| void | WSA (const char *varname, const std::vector< std::string > &data, int odb_string_length, MVOdbError *error) |
| void | WU16A (const char *varname, const std::vector< uint16_t > &v, MVOdbError *error) |
| void | WU32A (const char *varname, const std::vector< uint32_t > &v, MVOdbError *error) |
| void | WU64A (const char *varname, const std::vector< uint64_t > &v, MVOdbError *error) |
| void | WBAI (const char *varname, int index, bool v, MVOdbError *error) |
| void | WIAI (const char *varname, int index, int v, MVOdbError *error) |
| void | WDAI (const char *varname, int index, double v, MVOdbError *error) |
| void | WFAI (const char *varname, int index, float v, MVOdbError *error) |
| void | WSAI (const char *varname, int index, const char *v, MVOdbError *error) |
| void | WU16AI (const char *varname, int index, uint16_t v, MVOdbError *error) |
| void | WU32AI (const char *varname, int index, uint32_t v, MVOdbError *error) |
| void | WU64AI (const char *varname, int index, uint64_t v, MVOdbError *error) |
| void | Delete (const char *odbname, MVOdbError *error) |
| template<> | |
| bool | GetJsonValue (const char *varname, const MJsonNode *node, int *value, MVOdbError *error) |
| template<> | |
| bool | GetJsonValue (const char *varname, const MJsonNode *node, double *value, MVOdbError *error) |
| template<> | |
| bool | GetJsonValue (const char *varname, const MJsonNode *node, float *value, MVOdbError *error) |
| template<> | |
| bool | GetJsonValue (const char *varname, const MJsonNode *node, bool *value, MVOdbError *error) |
| template<> | |
| bool | GetJsonValue (const char *varname, const MJsonNode *node, uint16_t *value, MVOdbError *error) |
| template<> | |
| bool | GetJsonValue (const char *varname, const MJsonNode *node, uint32_t *value, MVOdbError *error) |
| template<> | |
| bool | GetJsonValue (const char *varname, const MJsonNode *node, uint64_t *value, MVOdbError *error) |
Public Member Functions inherited from MVOdb | |
| virtual | ~MVOdb ()=0 |
| virtual | ~MVOdb ()=0 |
Static Public Member Functions | |
| static const MJsonNode * | FindPath (const MJsonNode *dir, const char *path, bool return_key=false) |
| Follow the ODB path through the JSON tree. | |
| static int | GetInt (const MJsonNode *dir, const char *name, int missing_value) |
Data Fields | |
| const MJsonNode * | fRoot |
| const MJsonNode * | fDir |
| std::string | fPath |
| bool | fPrintError |
Access to ODB saved in JSON format inside midas .mid files.
Definition at line 30 of file mjsonodb.cxx.
|
inline |
|
inline |
Definition at line 48 of file mjsonodb.cxx.
|
inlinevirtual |
Implements MVOdb.
Definition at line 177 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 570 of file mjsonodb.cxx.

|
inlinestatic |
Follow the ODB path through the JSON tree.
Definition at line 112 of file mjsonodb.cxx.


|
inlinestatic |
Definition at line 169 of file mjsonodb.cxx.


| bool JsonOdb::GetJsonValue | ( | const char * | varname, |
| const MJsonNode * | node, | ||
| bool * | value, | ||
| MVOdbError * | error | ||
| ) |
| bool JsonOdb::GetJsonValue | ( | const char * | varname, |
| const MJsonNode * | node, | ||
| double * | value, | ||
| MVOdbError * | error | ||
| ) |
| bool JsonOdb::GetJsonValue | ( | const char * | varname, |
| const MJsonNode * | node, | ||
| float * | value, | ||
| MVOdbError * | error | ||
| ) |
| bool JsonOdb::GetJsonValue | ( | const char * | varname, |
| const MJsonNode * | node, | ||
| int * | value, | ||
| MVOdbError * | error | ||
| ) |
| bool JsonOdb::GetJsonValue | ( | const char * | varname, |
| const MJsonNode * | node, | ||
| T * | value, | ||
| MVOdbError * | error | ||
| ) |
| bool JsonOdb::GetJsonValue | ( | const char * | varname, |
| const MJsonNode * | node, | ||
| uint16_t * | value, | ||
| MVOdbError * | error | ||
| ) |
| bool JsonOdb::GetJsonValue | ( | const char * | varname, |
| const MJsonNode * | node, | ||
| uint32_t * | value, | ||
| MVOdbError * | error | ||
| ) |
| bool JsonOdb::GetJsonValue | ( | const char * | varname, |
| const MJsonNode * | node, | ||
| uint64_t * | value, | ||
| MVOdbError * | error | ||
| ) |
|
inlinevirtual |
Implements MVOdb.
Definition at line 63 of file mjsonodb.cxx.
|
inlinevirtual |
Implements MVOdb.
Definition at line 103 of file mjsonodb.cxx.
|
inlinevirtual |
Implements MVOdb.
Definition at line 308 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 393 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 499 of file mjsonodb.cxx.


|
inlinevirtual |
Implements MVOdb.
Definition at line 318 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 403 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 509 of file mjsonodb.cxx.


|
inlinevirtual |
Implements MVOdb.
Definition at line 257 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 216 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 239 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 323 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 408 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 514 of file mjsonodb.cxx.


|
inlinevirtual |
Implements MVOdb.
Definition at line 313 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 398 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 504 of file mjsonodb.cxx.


|
inlinevirtual |
Implements MVOdb.
Definition at line 328 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 413 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 519 of file mjsonodb.cxx.


|
inlinevirtual |
Implements MVOdb.
Definition at line 333 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 418 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 524 of file mjsonodb.cxx.


|
inlinevirtual |
Implements MVOdb.
Definition at line 338 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 423 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 529 of file mjsonodb.cxx.


|
inlinevirtual |
Implements MVOdb.
Definition at line 343 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 428 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 534 of file mjsonodb.cxx.


|
inline |
Definition at line 349 of file mjsonodb.cxx.


|
inline |
Definition at line 434 of file mjsonodb.cxx.


|
inline |
Definition at line 68 of file mjsonodb.cxx.


|
inlinevirtual |
Implements MVOdb.
Definition at line 58 of file mjsonodb.cxx.
|
inline |
Definition at line 78 of file mjsonodb.cxx.


|
inline |
Definition at line 87 of file mjsonodb.cxx.


|
inlinevirtual |
Implements MVOdb.
Definition at line 541 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 550 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 559 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 543 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 552 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 561 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 544 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 553 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 562 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 542 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 551 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 560 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 545 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 554 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 563 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 546 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 555 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 564 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 547 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 556 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 565 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 548 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 557 of file mjsonodb.cxx.

|
inlinevirtual |
Implements MVOdb.
Definition at line 566 of file mjsonodb.cxx.

| const MJsonNode* JsonOdb::fDir |
Definition at line 34 of file mjsonodb.cxx.
| std::string JsonOdb::fPath |
Definition at line 35 of file mjsonodb.cxx.
| bool JsonOdb::fPrintError |
Definition at line 36 of file mjsonodb.cxx.
| const MJsonNode* JsonOdb::fRoot |
Definition at line 33 of file mjsonodb.cxx.