KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVDataBase.h
1/***************************************************************************
2$Id: KVDataBase.h,v 1.20 2009/01/22 13:55:00 franklan Exp $
3 KVDataBase.h - description
4 -------------------
5 begin : jeu fév 6 2003
6 copyright : (C) 2003 by Alexis Mignon
7 email : mignon@ganil.fr
8 ***************************************************************************/
9
10/***************************************************************************
11 * *
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
16 * *
17 ***************************************************************************/
18#ifndef KV_DATA_BASE_H
19#define KV_DATA_BASE_H
20#include "TFolder.h"
21#include "TString.h"
22#include "KVList.h"
23#include "KVDBTable.h"
24#include "KVDBRecord.h"
25
26class TFile;
27class KVNumberList;
28
46
49
54
71
76
83
87
137class KVDataBase: public TFolder {
138
140
141public:
142 KVDataBase();
143 KVDataBase(const Char_t* name);
144 KVDataBase(const Char_t* name, const Char_t* title);
145 virtual ~ KVDataBase();
146
147 inline virtual KVDBTable* GetTable(const Char_t* table) const;
148 inline virtual TList* GetTables() const;
149 virtual Bool_t AddTable(KVDBTable* table);
150 virtual KVDBTable* AddTable(const Char_t* name, const Char_t* title,
151 Bool_t unique = kFALSE);
152 virtual KVDBRecord* GetRecord(const Char_t* table_name,
153 const Char_t* rec_name) const;
154 virtual void Print(Option_t* option = "") const;
155
156 ClassDef(KVDataBase, 3) // Base Class for a database of parameters
157};
158
160{
161 return (KVDBTable*) FindObject(table);
162}
163
165{
166 return (TList*) GetListOfFolders();
167}
168
169#endif
bool Bool_t
char Char_t
const char Option_t
#define ClassDef(name, id)
Record folder for the database.
Definition KVDBRecord.h:43
Table in a database.
Definition KVDBTable.h:34
Simple cross-referenced database structure.
Definition KVDataBase.h:137
virtual void Print(Option_t *option="") const
virtual KVDBTable * GetTable(const Char_t *table) const
Definition KVDataBase.h:159
virtual KVDBRecord * GetRecord(const Char_t *table_name, const Char_t *rec_name) const
virtual TList * GetTables() const
Definition KVDataBase.h:164
TString fFolderName
Definition KVDataBase.h:139
virtual Bool_t AddTable(KVDBTable *table)
Strings used to represent a set of ranges of values.
TCollection * GetListOfFolders() const
TObject * FindObject(const char *name) const override
Table in an SQLite database.