ROOTANA
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Data Fields
XmlOdb Class Reference

Access to ODB saved in XML format inside midas .mid files. More...

Inheritance diagram for XmlOdb:
Inheritance graph
[legend]
Collaboration diagram for XmlOdb:
Collaboration graph
[legend]

Public Member Functions

 XmlOdb (PMXML_NODE root, PMXML_NODE dir, MVOdbError *error)
 
 ~XmlOdb ()
 
void SetPrintError (bool v)
 
bool GetPrintError () const
 
void SetNotFound (MVOdbError *error, const char *varname)
 
void SetNullValue (MVOdbError *error, const char *varname)
 
bool IsReadOnly () const
 
MVOdbChdir (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)
 
PMXML_NODE FindXmlNode (PMXML_NODE dir, const char *varname, const char *type1, const char *type2, MVOdbError *error)
 
template<typename T >
void RXA (const char *varname, const char *type1, const char *type2, 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)
 
template<typename T >
void RXAI (const char *varname, int index, const char *type1, const char *type2, 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 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 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 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 Delete (const char *odbname, MVOdbError *error)
 
- Public Member Functions inherited from MVOdb
virtual ~MVOdb ()=0
 
virtual ~MVOdb ()=0
 

Static Public Member Functions

static PMXML_NODE FindPath (PMXML_NODE dir, const char *path)
 Follow the ODB path through the XML DOM tree.
 

Data Fields

PMXML_NODE fRoot
 
PMXML_NODE fDir
 
std::string fPath
 
bool fPrintError
 

Detailed Description

Access to ODB saved in XML format inside midas .mid files.

Definition at line 171 of file mxmlodb.cxx.

Constructor & Destructor Documentation

◆ XmlOdb()

XmlOdb::XmlOdb ( PMXML_NODE  root,
PMXML_NODE  dir,
MVOdbError error 
)
inline

Definition at line 180 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ ~XmlOdb()

XmlOdb::~XmlOdb ( )
inline

Definition at line 193 of file mxmlodb.cxx.

Here is the call graph for this function:

Member Function Documentation

◆ Chdir()

MVOdb * XmlOdb::Chdir ( const char *  subdir,
bool  create,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 310 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ Delete()

void XmlOdb::Delete ( const char *  odbname,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 673 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ FindPath()

static PMXML_NODE XmlOdb::FindPath ( PMXML_NODE  dir,
const char *  path 
)
inlinestatic

Follow the ODB path through the XML DOM tree.

Definition at line 248 of file mxmlodb.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FindXmlNode()

PMXML_NODE XmlOdb::FindXmlNode ( PMXML_NODE  dir,
const char *  varname,
const char *  type1,
const char *  type2,
MVOdbError error 
)
inline

Definition at line 407 of file mxmlodb.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetPrintError()

bool XmlOdb::GetPrintError ( ) const
inlinevirtual

Implements MVOdb.

Definition at line 208 of file mxmlodb.cxx.

◆ IsReadOnly()

bool XmlOdb::IsReadOnly ( ) const
inlinevirtual

Implements MVOdb.

Definition at line 242 of file mxmlodb.cxx.

◆ RB()

void XmlOdb::RB ( const char *  varname,
bool *  value,
bool  create,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 372 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ RBA()

void XmlOdb::RBA ( const char *  varname,
std::vector< bool > *  value,
bool  create,
int  create_size,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 497 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ RBAI()

void XmlOdb::RBAI ( const char *  varname,
int  index,
bool *  value,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 610 of file mxmlodb.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RD()

void XmlOdb::RD ( const char *  varname,
double *  value,
bool  create,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 382 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ RDA()

void XmlOdb::RDA ( const char *  varname,
std::vector< double > *  value,
bool  create,
int  create_size,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 507 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ RDAI()

void XmlOdb::RDAI ( const char *  varname,
int  index,
double *  value,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 620 of file mxmlodb.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadDir()

void XmlOdb::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 
)
inlinevirtual

Implements MVOdb.

Definition at line 366 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ ReadKey()

void XmlOdb::ReadKey ( const char *  varname,
int *  tid,
int *  num_values,
int *  total_size,
int *  item_size,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 349 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ ReadKeyLastWritten()

void XmlOdb::ReadKeyLastWritten ( const char *  varname,
int *  last_written,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 359 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ RF()

void XmlOdb::RF ( const char *  varname,
float *  value,
bool  create,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 387 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ RFA()

void XmlOdb::RFA ( const char *  varname,
std::vector< float > *  value,
bool  create,
int  create_size,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 512 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ RFAI()

void XmlOdb::RFAI ( const char *  varname,
int  index,
float *  value,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 625 of file mxmlodb.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RI()

void XmlOdb::RI ( const char *  varname,
int *  value,
bool  create,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 377 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ RIA()

void XmlOdb::RIA ( const char *  varname,
std::vector< int > *  value,
bool  create,
int  create_size,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 502 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ RIAI()

void XmlOdb::RIAI ( const char *  varname,
int  index,
int *  value,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 615 of file mxmlodb.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RS()

void XmlOdb::RS ( const char *  varname,
std::string *  value,
bool  create,
int  create_string_length,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 392 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ RSA()

void XmlOdb::RSA ( const char *  varname,
std::vector< std::string > *  value,
bool  create,
int  create_size,
int  create_string_length,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 517 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ RSAI()

void XmlOdb::RSAI ( const char *  varname,
int  index,
std::string *  value,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 630 of file mxmlodb.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RU16()

void XmlOdb::RU16 ( const char *  varname,
uint16_t *  value,
bool  create,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 397 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ RU16A()

void XmlOdb::RU16A ( const char *  varname,
std::vector< uint16_t > *  value,
bool  create,
int  create_size,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 522 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ RU16AI()

void XmlOdb::RU16AI ( const char *  varname,
int  index,
uint16_t *  value,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 635 of file mxmlodb.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RU32()

void XmlOdb::RU32 ( const char *  varname,
uint32_t *  value,
bool  create,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 402 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ RU32A()

void XmlOdb::RU32A ( const char *  varname,
std::vector< uint32_t > *  value,
bool  create,
int  create_size,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 527 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ RU32AI()

void XmlOdb::RU32AI ( const char *  varname,
int  index,
uint32_t *  value,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 640 of file mxmlodb.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RXA()

template<typename T >
void XmlOdb::RXA ( const char *  varname,
const char *  type1,
const char *  type2,
std::vector< T > *  value,
MVOdbError error 
)
inline

Definition at line 435 of file mxmlodb.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RXAI()

template<typename T >
void XmlOdb::RXAI ( const char *  varname,
int  index,
const char *  type1,
const char *  type2,
T *  value,
MVOdbError error 
)
inline

Definition at line 533 of file mxmlodb.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetNotFound()

void XmlOdb::SetNotFound ( MVOdbError error,
const char *  varname 
)
inline

Definition at line 213 of file mxmlodb.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetNullValue()

void XmlOdb::SetNullValue ( MVOdbError error,
const char *  varname 
)
inline

Definition at line 227 of file mxmlodb.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetPrintError()

void XmlOdb::SetPrintError ( bool  v)
inlinevirtual

Implements MVOdb.

Definition at line 203 of file mxmlodb.cxx.

◆ WB()

void XmlOdb::WB ( const char *  varname,
bool  v,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 647 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ WBA()

void XmlOdb::WBA ( const char *  varname,
const std::vector< bool > &  v,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 655 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ WBAI()

void XmlOdb::WBAI ( const char *  varname,
int  index,
bool  v,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 663 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ WD()

void XmlOdb::WD ( const char *  varname,
double  v,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 649 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ WDA()

void XmlOdb::WDA ( const char *  varname,
const std::vector< double > &  v,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 657 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ WDAI()

void XmlOdb::WDAI ( const char *  varname,
int  index,
double  v,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 665 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ WF()

void XmlOdb::WF ( const char *  varname,
float  v,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 650 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ WFA()

void XmlOdb::WFA ( const char *  varname,
const std::vector< float > &  v,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 658 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ WFAI()

void XmlOdb::WFAI ( const char *  varname,
int  index,
float  v,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 666 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ WI()

void XmlOdb::WI ( const char *  varname,
int  v,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 648 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ WIA()

void XmlOdb::WIA ( const char *  varname,
const std::vector< int > &  v,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 656 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ WIAI()

void XmlOdb::WIAI ( const char *  varname,
int  index,
int  v,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 664 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ WS()

void XmlOdb::WS ( const char *  varname,
const char *  v,
int  string_length,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 651 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ WSA()

void XmlOdb::WSA ( const char *  varname,
const std::vector< std::string > &  data,
int  odb_string_length,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 659 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ WSAI()

void XmlOdb::WSAI ( const char *  varname,
int  index,
const char *  v,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 667 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ WU16()

void XmlOdb::WU16 ( const char *  varname,
uint16_t  v,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 652 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ WU16A()

void XmlOdb::WU16A ( const char *  varname,
const std::vector< uint16_t > &  v,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 660 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ WU16AI()

void XmlOdb::WU16AI ( const char *  varname,
int  index,
uint16_t  v,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 668 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ WU32()

void XmlOdb::WU32 ( const char *  varname,
uint32_t  v,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 653 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ WU32A()

void XmlOdb::WU32A ( const char *  varname,
const std::vector< uint32_t > &  v,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 661 of file mxmlodb.cxx.

Here is the call graph for this function:

◆ WU32AI()

void XmlOdb::WU32AI ( const char *  varname,
int  index,
uint32_t  v,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 669 of file mxmlodb.cxx.

Here is the call graph for this function:

Field Documentation

◆ fDir

PMXML_NODE XmlOdb::fDir

Definition at line 175 of file mxmlodb.cxx.

◆ fPath

std::string XmlOdb::fPath

Definition at line 176 of file mxmlodb.cxx.

◆ fPrintError

bool XmlOdb::fPrintError

Definition at line 177 of file mxmlodb.cxx.

◆ fRoot

PMXML_NODE XmlOdb::fRoot

Definition at line 174 of file mxmlodb.cxx.


The documentation for this class was generated from the following file: