VirtualOdb.h

Go to the documentation of this file.
00001 //
00002 // Virtual ODB access methods: online or offline from XML file
00003 //
00004 // Name: VirtualOdb.h
00005 //
00006 // $Id$
00007 //
00008 //
00009 
00010 #ifndef INCLUDE_VirtualOdb_H
00011 #define INCLUDE_VirtualOdb_H
00012 
00013 #include "rootana_stdint.h"
00014 /// Interface class for ODB access
00015 
00016 struct VirtualOdb
00017 {
00018   // ODB functions
00019 
00020   /// Read size of an array
00021   virtual int      odbReadArraySize(const char*name) = 0;
00022   /// Read value of arbitrary type
00023   virtual int      odbReadAny(   const char*name, int index, int tid,void* buf, int bufsize = 0) = 0;
00024   /// Read an integer value, midas type TID_INT
00025   virtual int      odbReadInt(   const char*name, int index = 0, int      defaultValue = 0) = 0;
00026   /// Read an unsigned 32-bit integer value, midas type TID_DWORD
00027   virtual uint32_t odbReadUint32(const char*name, int index = 0, uint32_t defaultValue = 0) = 0;
00028   /// Read an 32-bit floating point value, midas type TID_FLOAT
00029   virtual float   odbReadFloat(const char*name, int index = 0, float   defaultValue = 0) = 0;
00030   /// Read an 64-bit floating point value, midas type TID_DOUBLET
00031   virtual double   odbReadDouble(const char*name, int index = 0, double   defaultValue = 0) = 0;
00032   /// Read a boolean value, midas type TID_BOOL
00033   virtual bool     odbReadBool(  const char*name, int index = 0, bool     defaultValue = false) = 0;
00034   /// Read a string value, midas type TID_STRING
00035   virtual const char* odbReadString(const char*name, int index = 0,const char* defaultValue = NULL) = 0;
00036   /// Destructor has to be virtual
00037   virtual ~VirtualOdb() { /* empty */ }; // dtor
00038 };
00039 
00040 #endif
00041 // end
00042 

Generated on 12 Feb 2016 for ROOT Analyzer by  doxygen 1.6.1