ROOTANA
Data Structures | Functions
mxmlodb.cxx File Reference
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "mvodb.h"
#include "mxml.h"
Include dependency graph for mxmlodb.cxx:

Go to the source code of this file.

Data Structures

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

Functions

static std::string toString (int i)
 
static PMXML_NODE FindNode (PMXML_NODE dir, const char *name)
 
static const char * GetAttrName (PMXML_NODE node, int i)
 Return the name of the indexed attribute. More...
 
static const char * GetAttrValue (PMXML_NODE node, int i)
 Return the value of the indexed attribute. More...
 
static const char * GetAttr (PMXML_NODE node, const char *attrName)
 Return the value of the named attribute. More...
 
template<typename T >
static T GetXmlValue (const char *text)
 
template<>
int GetXmlValue< int > (const char *text)
 
template<>
double GetXmlValue< double > (const char *text)
 
template<>
float GetXmlValue< float > (const char *text)
 
template<>
bool GetXmlValue< bool > (const char *text)
 
template<>
uint16_t GetXmlValue< uint16_t > (const char *text)
 
template<>
uint32_t GetXmlValue< uint32_t > (const char *text)
 
template<>
std::string GetXmlValue< std::string > (const char *text)
 
MVOdbMakeXmlFileOdb (const char *filename, MVOdbError *error)
 
MVOdbMakeXmlBufferOdb (const char *buf, int bufsize, MVOdbError *error)
 

Function Documentation

◆ FindNode()

static PMXML_NODE FindNode ( PMXML_NODE  dir,
const char *  name 
)
static

Definition at line 26 of file mxmlodb.cxx.

Here is the caller graph for this function:

◆ GetAttr()

static const char* GetAttr ( PMXML_NODE  node,
const char *  attrName 
)
static

Return the value of the named attribute.

Definition at line 61 of file mxmlodb.cxx.

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

◆ GetAttrName()

static const char* GetAttrName ( PMXML_NODE  node,
int  i 
)
static

Return the name of the indexed attribute.

Definition at line 45 of file mxmlodb.cxx.

Here is the caller graph for this function:

◆ GetAttrValue()

static const char* GetAttrValue ( PMXML_NODE  node,
int  i 
)
static

Return the value of the indexed attribute.

Definition at line 53 of file mxmlodb.cxx.

Here is the caller graph for this function:

◆ GetXmlValue()

template<typename T >
static T GetXmlValue ( const char *  text)
static

◆ GetXmlValue< bool >()

template<>
bool GetXmlValue< bool > ( const char *  text)

Definition at line 143 of file mxmlodb.cxx.

◆ GetXmlValue< double >()

template<>
double GetXmlValue< double > ( const char *  text)

Definition at line 131 of file mxmlodb.cxx.

◆ GetXmlValue< float >()

template<>
float GetXmlValue< float > ( const char *  text)

Definition at line 137 of file mxmlodb.cxx.

◆ GetXmlValue< int >()

template<>
int GetXmlValue< int > ( const char *  text)

Definition at line 125 of file mxmlodb.cxx.

◆ GetXmlValue< std::string >()

template<>
std::string GetXmlValue< std::string > ( const char *  text)

Definition at line 164 of file mxmlodb.cxx.

◆ GetXmlValue< uint16_t >()

template<>
uint16_t GetXmlValue< uint16_t > ( const char *  text)

Definition at line 152 of file mxmlodb.cxx.

◆ GetXmlValue< uint32_t >()

template<>
uint32_t GetXmlValue< uint32_t > ( const char *  text)

Definition at line 158 of file mxmlodb.cxx.

◆ MakeXmlBufferOdb()

MVOdb* MakeXmlBufferOdb ( const char *  buf,
int  bufsize,
MVOdbError error 
)

Definition at line 713 of file mxmlodb.cxx.

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

◆ MakeXmlFileOdb()

MVOdb* MakeXmlFileOdb ( const char *  filename,
MVOdbError error 
)

Definition at line 682 of file mxmlodb.cxx.

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

◆ toString()

static std::string toString ( int  i)
static

Definition at line 19 of file mxmlodb.cxx.

Here is the caller graph for this function: