2#ifndef CALIBUTIL_METADATA_H
3#define CALIBUTIL_METADATA_H
5#include "facilities/Timestamp.h"
6#include "rdbModel/Db/Connection.h"
7#include "rdbModel/Tables/Assertion.h"
9#include "DatabaseSvc/IDatabaseSvc.h"
60 Metadata(
const std::string& host=
"bes3db2.ihep.ac.cn",
61 const std::string& table=
"*",
62 const std::string& dbName=
"calib");
97 const std::string& calibType,
98 const std::string& sft_ver,
99 const std::string& cal_ver,
100 const std::string& cal_par,
101 const std::string& rec_alg,
102 const std::string& rec_par,
103 const std::string& machine,
104 const std::string& flavor=
"VANILLA");
126 const std::string& calibType,
127 const std::string& sft_ver,
128 const std::string& cal_ver,
129 const std::string& cal_par,
130 const std::string& rec_alg,
131 const std::string& rec_par,
132 const std::string& machine,
133 const std::string& flavor=
"VANILLA");
161 std::string& dataFmt,
163 std::string& dataIdent);
168 std::string& calParVer,
171 std::string& sftver);
176 std::string& calParVer,
179 std::string& sftver);
184 std::string& calParVer,
187 std::string& sftver);
192 std::string& calParVer,
195 std::string& sftver);
200 std::string& calParVer,
203 std::string& sftver);
208 std::string& calParVer,
211 std::string& sftver);
216 std::string& calParVer,
219 std::string& sftver);
223 std::string& calParVer,
226 std::string& sftver);
230 std::string& calParVer,
233 std::string& sftver);
237 std::string& calParVer,
240 std::string& sftver);
244 std::string& calParVer,
247 std::string& sftver);
251 std::string& calParVer,
254 std::string& sftver);
260 const std::string& flavor,
261 const std::string& calib_type,
262 const std::string& data_ident,
263 const std::string& data_format,
264 unsigned int& runfrm,
266 const std::string& input_desc,
267 const std::string& notes,
268 const std::string& proc_level,
269 const std::string& locale,
270 const std::string& fmt_version =
"",
271 const std::string& completion =
"OK");
303 unsigned adjustVend(
int newSer);
311 bool fetchLevel(std::string& val,
unsigned int *levelMask);
322 const std::string& user,
323 const std::string& pw,
eRet& err,
324 const std::string& dbName);
326 bool connectWrite(
eRet& err);
330 const std::string& schema);
335 eRet doSelect(std::vector<rdbModel::Assertion::Operator *>&
341 eRet fetchUser(std::string& user);
369 std::string m_dbName;
Module implements methods for clients to get generic services.
std::vector< std::string > StringVector