ROOTANA
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
MidasOdb Class Reference
Inheritance diagram for MidasOdb:
Inheritance graph
[legend]
Collaboration diagram for MidasOdb:
Collaboration graph
[legend]

Public Member Functions

 MidasOdb (HNDLE hDB, const char *root)
 
 ~MidasOdb ()
 
std::string Path (const char *varname)
 
void SetPrintError (bool v)
 
bool GetPrintError () const
 
bool IsReadOnly () const
 
MVOdbChdir (const char *subdir, bool create, MVOdbError *error)
 
void RAInfo (const char *varname, int *num_elements, int *element_size, 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 ResizeArray (const char *varname, int new_size, MVOdbError *error)
 
void ResizeStringArray (const char *varname, int new_size, int new_string_length, MVOdbError *error)
 
bool R (const char *varname, int tid, void *value, int size, bool create, MVOdbError *error)
 
void RI (const char *varname, int *value, bool create, 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 RD (const char *varname, double *value, bool create, MVOdbError *error)
 
void RF (const char *varname, float *value, bool create, MVOdbError *error)
 
void RB (const char *varname, bool *value, bool create, MVOdbError *error)
 
void RS (const char *varname, std::string *value, bool create, int create_string_length, MVOdbError *error)
 
void RAI (const char *varname, int index, int tid, void *value, int size, MVOdbError *error)
 
void RIAI (const char *varname, int index, int *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 RDAI (const char *varname, int index, double *value, MVOdbError *error)
 
void RFAI (const char *varname, int index, float *value, MVOdbError *error)
 
void RBAI (const char *varname, int index, bool *value, MVOdbError *error)
 
void RSAI (const char *varname, int index, std::string *value, MVOdbError *error)
 
bool RA (const std::string &path, int tid, void *buf, int size, MVOdbError *error)
 
void GetArraySize (const char *varname, int *pnum_values, int *pitem_size, MVOdbError *error)
 
template<class X >
bool RXA (const char *varname, int tid, std::vector< X > *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 RFA (const char *varname, std::vector< float > *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 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 RBA (const char *varname, std::vector< bool > *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 W (const char *varname, int tid, const void *v, int size, MVOdbError *error)
 
void WB (const char *varname, bool v, MVOdbError *error)
 
void WI (const char *varname, int v, MVOdbError *error)
 
void WU16 (const char *varname, uint16_t v, MVOdbError *error)
 
void WU32 (const char *varname, uint32_t 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 WAI (const char *varname, int index, int tid, const void *v, int size, 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 WU16AI (const char *varname, int index, uint16_t v, MVOdbError *error)
 
void WU32AI (const char *varname, int index, uint32_t 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 WA (const char *varname, int tid, const void *v, int size, int count, MVOdbError *error)
 
void WBA (const char *varname, const std::vector< bool > &v, 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 WIA (const char *varname, const std::vector< int > &v, MVOdbError *error)
 
void WFA (const char *varname, const std::vector< float > &v, MVOdbError *error)
 
void WDA (const char *varname, const std::vector< double > &v, MVOdbError *error)
 
void WSA (const char *varname, const std::vector< std::string > &v, int odb_string_size, MVOdbError *error)
 
void Delete (const char *odbname, MVOdbError *error)
 
- Public Member Functions inherited from MVOdb
virtual ~MVOdb ()=0
 
virtual ~MVOdb ()=0
 

Data Fields

HNDLE fDB = 0
 
std::string fRoot
 
bool fPrintError = true
 
bool fPrintWarning = false
 

Detailed Description

Definition at line 25 of file midasodb.cxx.

Constructor & Destructor Documentation

◆ MidasOdb()

MidasOdb::MidasOdb ( HNDLE  hDB,
const char *  root 
)
inline

Definition at line 34 of file midasodb.cxx.

◆ ~MidasOdb()

MidasOdb::~MidasOdb ( )
inline

Definition at line 40 of file midasodb.cxx.

Member Function Documentation

◆ Chdir()

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

Implements MVOdb.

Definition at line 70 of file midasodb.cxx.

Here is the call graph for this function:

◆ Delete()

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

Implements MVOdb.

Definition at line 894 of file midasodb.cxx.

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

◆ GetArraySize()

void MidasOdb::GetArraySize ( const char *  varname,
int *  pnum_values,
int *  pitem_size,
MVOdbError error 
)
inline

Definition at line 400 of file midasodb.cxx.

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

◆ GetPrintError()

bool MidasOdb::GetPrintError ( ) const
inlinevirtual

Implements MVOdb.

Definition at line 60 of file midasodb.cxx.

◆ IsReadOnly()

bool MidasOdb::IsReadOnly ( ) const
inlinevirtual

Implements MVOdb.

Definition at line 65 of file midasodb.cxx.

◆ Path()

std::string MidasOdb::Path ( const char *  varname)
inline

Definition at line 46 of file midasodb.cxx.

Here is the caller graph for this function:

◆ R()

bool MidasOdb::R ( const char *  varname,
int  tid,
void *  value,
int  size,
bool  create,
MVOdbError error 
)
inline

Definition at line 240 of file midasodb.cxx.

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

◆ RA()

bool MidasOdb::RA ( const std::string &  path,
int  tid,
void *  buf,
int  size,
MVOdbError error 
)
inline

Definition at line 387 of file midasodb.cxx.

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

◆ RAI()

void MidasOdb::RAI ( const char *  varname,
int  index,
int  tid,
void *  value,
int  size,
MVOdbError error 
)
inline

Definition at line 315 of file midasodb.cxx.

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

◆ RAInfo()

void MidasOdb::RAInfo ( const char *  varname,
int *  num_elements,
int *  element_size,
MVOdbError error 
)
inline

Definition at line 103 of file midasodb.cxx.

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

◆ RB()

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

Implements MVOdb.

Definition at line 287 of file midasodb.cxx.

Here is the call graph for this function:

◆ RBA()

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

Implements MVOdb.

Definition at line 517 of file midasodb.cxx.

◆ RBAI()

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

Implements MVOdb.

Definition at line 359 of file midasodb.cxx.

Here is the call graph for this function:

◆ RD()

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

Implements MVOdb.

Definition at line 268 of file midasodb.cxx.

Here is the call graph for this function:

◆ RDA()

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

Implements MVOdb.

Definition at line 481 of file midasodb.cxx.

Here is the call graph for this function:

◆ RDAI()

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

Implements MVOdb.

Definition at line 349 of file midasodb.cxx.

Here is the call graph for this function:

◆ ReadDir()

void MidasOdb::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 198 of file midasodb.cxx.

Here is the call graph for this function:

◆ ReadKey()

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

Implements MVOdb.

Definition at line 130 of file midasodb.cxx.

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

◆ ReadKeyLastWritten()

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

Implements MVOdb.

Definition at line 170 of file midasodb.cxx.

Here is the call graph for this function:

◆ ResizeArray()

void MidasOdb::ResizeArray ( const char *  varname,
int  new_size,
MVOdbError error 
)
inline

Definition at line 204 of file midasodb.cxx.

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

◆ ResizeStringArray()

void MidasOdb::ResizeStringArray ( const char *  varname,
int  new_size,
int  new_string_length,
MVOdbError error 
)
inline

Definition at line 227 of file midasodb.cxx.

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

◆ RF()

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

Implements MVOdb.

Definition at line 282 of file midasodb.cxx.

Here is the call graph for this function:

◆ RFA()

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

Implements MVOdb.

Definition at line 476 of file midasodb.cxx.

◆ RFAI()

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

Implements MVOdb.

Definition at line 354 of file midasodb.cxx.

Here is the call graph for this function:

◆ RI()

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

Implements MVOdb.

Definition at line 253 of file midasodb.cxx.

Here is the call graph for this function:

◆ RIA()

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

Implements MVOdb.

Definition at line 471 of file midasodb.cxx.

◆ RIAI()

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

Implements MVOdb.

Definition at line 334 of file midasodb.cxx.

Here is the call graph for this function:

◆ RS()

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

Implements MVOdb.

Definition at line 295 of file midasodb.cxx.

Here is the call graph for this function:

◆ RSA()

void MidasOdb::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 545 of file midasodb.cxx.

Here is the call graph for this function:

◆ RSAI()

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

Implements MVOdb.

Definition at line 367 of file midasodb.cxx.

Here is the call graph for this function:

◆ RU16()

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

Implements MVOdb.

Definition at line 258 of file midasodb.cxx.

Here is the call graph for this function:

◆ RU16A()

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

Implements MVOdb.

Definition at line 507 of file midasodb.cxx.

◆ RU16AI()

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

Implements MVOdb.

Definition at line 339 of file midasodb.cxx.

Here is the call graph for this function:

◆ RU32()

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

Implements MVOdb.

Definition at line 263 of file midasodb.cxx.

Here is the call graph for this function:

◆ RU32A()

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

Implements MVOdb.

Definition at line 512 of file midasodb.cxx.

◆ RU32AI()

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

Implements MVOdb.

Definition at line 344 of file midasodb.cxx.

Here is the call graph for this function:

◆ RXA()

template<class X >
bool MidasOdb::RXA ( const char *  varname,
int  tid,
std::vector< X > *  value,
bool  create,
int  create_size,
MVOdbError error 
)
inline

Definition at line 420 of file midasodb.cxx.

Here is the call graph for this function:

◆ SetPrintError()

void MidasOdb::SetPrintError ( bool  v)
inlinevirtual

Implements MVOdb.

Definition at line 55 of file midasodb.cxx.

◆ W()

void MidasOdb::W ( const char *  varname,
int  tid,
const void *  v,
int  size,
MVOdbError error 
)
inline

Definition at line 640 of file midasodb.cxx.

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

◆ WA()

void MidasOdb::WA ( const char *  varname,
int  tid,
const void *  v,
int  size,
int  count,
MVOdbError error 
)
inline

Definition at line 788 of file midasodb.cxx.

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

◆ WAI()

void MidasOdb::WAI ( const char *  varname,
int  index,
int  tid,
const void *  v,
int  size,
MVOdbError error 
)
inline

Definition at line 710 of file midasodb.cxx.

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

◆ WB()

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

Implements MVOdb.

Definition at line 665 of file midasodb.cxx.

Here is the call graph for this function:

◆ WBA()

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

Implements MVOdb.

Definition at line 835 of file midasodb.cxx.

Here is the call graph for this function:

◆ WBAI()

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

Implements MVOdb.

Definition at line 741 of file midasodb.cxx.

Here is the call graph for this function:

◆ WD()

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

Implements MVOdb.

Definition at line 686 of file midasodb.cxx.

Here is the call graph for this function:

◆ WDA()

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

Implements MVOdb.

Definition at line 867 of file midasodb.cxx.

Here is the call graph for this function:

◆ WDAI()

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

Implements MVOdb.

Definition at line 762 of file midasodb.cxx.

Here is the call graph for this function:

◆ WF()

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

Implements MVOdb.

Definition at line 691 of file midasodb.cxx.

Here is the call graph for this function:

◆ WFA()

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

Implements MVOdb.

Definition at line 862 of file midasodb.cxx.

Here is the call graph for this function:

◆ WFAI()

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

Implements MVOdb.

Definition at line 767 of file midasodb.cxx.

Here is the call graph for this function:

◆ WI()

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

Implements MVOdb.

Definition at line 671 of file midasodb.cxx.

Here is the call graph for this function:

◆ WIA()

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

Implements MVOdb.

Definition at line 857 of file midasodb.cxx.

Here is the call graph for this function:

◆ WIAI()

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

Implements MVOdb.

Definition at line 747 of file midasodb.cxx.

Here is the call graph for this function:

◆ WS()

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

Implements MVOdb.

Definition at line 696 of file midasodb.cxx.

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

◆ WSA()

void MidasOdb::WSA ( const char *  varname,
const std::vector< std::string > &  v,
int  odb_string_size,
MVOdbError error 
)
inlinevirtual

Implements MVOdb.

Definition at line 872 of file midasodb.cxx.

Here is the call graph for this function:

◆ WSAI()

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

Implements MVOdb.

Definition at line 772 of file midasodb.cxx.

Here is the call graph for this function:

◆ WU16()

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

Implements MVOdb.

Definition at line 676 of file midasodb.cxx.

Here is the call graph for this function:

◆ WU16A()

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

Implements MVOdb.

Definition at line 847 of file midasodb.cxx.

Here is the call graph for this function:

◆ WU16AI()

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

Implements MVOdb.

Definition at line 752 of file midasodb.cxx.

Here is the call graph for this function:

◆ WU32()

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

Implements MVOdb.

Definition at line 681 of file midasodb.cxx.

Here is the call graph for this function:

◆ WU32A()

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

Implements MVOdb.

Definition at line 852 of file midasodb.cxx.

Here is the call graph for this function:

◆ WU32AI()

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

Implements MVOdb.

Definition at line 757 of file midasodb.cxx.

Here is the call graph for this function:

Field Documentation

◆ fDB

HNDLE MidasOdb::fDB = 0

Definition at line 28 of file midasodb.cxx.

◆ fPrintError

bool MidasOdb::fPrintError = true

Definition at line 30 of file midasodb.cxx.

◆ fPrintWarning

bool MidasOdb::fPrintWarning = false

Definition at line 31 of file midasodb.cxx.

◆ fRoot

std::string MidasOdb::fRoot

Definition at line 29 of file midasodb.cxx.


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