TkN 2.4
Toolkit for Nuclei
Loading...
Searching...
No Matches
tkdb_builder.h
1/********************************************************************************
2 * Copyright (c) : Université de Lyon 1, CNRS/IN2P3, UMR5822, *
3 * IP2I, F-69622 Villeurbanne Cedex, France *
4 * Normandie Université, ENSICAEN, UNICAEN, CNRS/IN2P3, *
5 * LPC Caen, F-14000 Caen, France *
6 * Contibutor(s) : *
7 * Jérémie Dudouet jeremie.dudouet@cnrs.fr [2020] *
8 * Diego Gruyer diego.gruyer@cnrs.fr [2020] *
9 * *
10 * Licensed under the MIT License <http://opensource.org/licenses/MIT>. *
11 * SPDX-License-Identifier: MIT *
12 ********************************************************************************/
13
14#ifndef tkdb_builder_H
15#define tkdb_builder_H
16
17#include "tkn_config.h"
18#include "tkdb_table.h"
19#include "tkdatabase.h"
20
21#ifdef HAS_ROOT
22#include "TClass.h"
23#endif
24
25namespace tkn {
26
28
29protected:
30 tkdatabase *fDataBase;
31
32 tkstring fTableName;
33
34 tkdb_table *fTable = nullptr;
35
36public:
37 tkdb_builder(tkdatabase *_database, const char* _table_name);
38 virtual ~tkdb_builder();
39
40protected:
41 void add_measure(const tkstring &_measure_name, bool _with_dbname=true);
42 void fill_measure(tkstring _measure_name, const tkdb_table::measure_data_struct &_mes, bool _with_dbname=true);
43
44public:
45
46 tkdb_table &get_table() {return *fTable;}
47
48#ifdef HAS_ROOT
50 ClassDef(tkdb_builder,0);
51#endif
52};
53
54}
55#endif
56
57
Interface to the sqlite database.
Definition tkdatabase.h:34
Mother class used to fill the sqlite database.
virtual ~tkdb_builder()
tkdb_table & get_table()
tkdb_builder(tkdatabase *_database, const char *_table_name)
Representaiton of a sqlite data table.
Definition tkdb_table.h:29
std::string with usefull tricks from TString (ROOT) and KVString (KaliVeda) and more....
Definition tkstring.h:31
Definition tklog.cpp:16
data structure used to fill a tkmeasure object from the sqlite database
Definition tkdb_table.h:49