VirtualOdb.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef INCLUDE_VirtualOdb_H
00011 #define INCLUDE_VirtualOdb_H
00012
00013 #include "rootana_stdint.h"
00014
00015
00016 struct VirtualOdb
00017 {
00018
00019
00020
00021 virtual int odbReadArraySize(const char*name) = 0;
00022
00023 virtual int odbReadAny( const char*name, int index, int tid,void* buf, int bufsize = 0) = 0;
00024
00025 virtual int odbReadInt( const char*name, int index = 0, int defaultValue = 0) = 0;
00026
00027 virtual uint32_t odbReadUint32(const char*name, int index = 0, uint32_t defaultValue = 0) = 0;
00028
00029 virtual float odbReadFloat(const char*name, int index = 0, float defaultValue = 0) = 0;
00030
00031 virtual double odbReadDouble(const char*name, int index = 0, double defaultValue = 0) = 0;
00032
00033 virtual bool odbReadBool( const char*name, int index = 0, bool defaultValue = false) = 0;
00034
00035 virtual const char* odbReadString(const char*name, int index = 0,const char* defaultValue = NULL) = 0;
00036
00037 virtual ~VirtualOdb() { };
00038 };
00039
00040 #endif
00041
00042