BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
generate_cxx_from_db.C
Go to the documentation of this file.
1
// Macro for generating C++ classes - wrappers for all database tables
2
void
generate_cxx_from_db
(
TString
json_configuration_file =
"$VMCWORKDIR/database/tools/scheme/uni_db.json"
)
3
{
4
TStopwatch
timer;
5
timer.
Start
();
6
gDebug
= 0;
7
8
int
res =
UniGenerateClasses::GenerateClasses
(json_configuration_file);
9
if
(res == 0)
10
cout <<
"\nGenerating C++ interface classes has completed successfully"
<< endl;
11
else
12
cout <<
"\nGenerating C++ interfaqce classes has failed with code: "
<< res << endl;
13
14
timer.
Stop
();
15
Double_t
rtime = timer.
RealTime
(), ctime = timer.
CpuTime
();
16
printf(
"RealTime=%f seconds, CpuTime=%f seconds\n"
, rtime, ctime);
17
}
gDebug
Int_t gDebug
Double_t
double Double_t
TStopwatch
TStopwatch::RealTime
Double_t RealTime()
TStopwatch::Start
void Start(Bool_t reset=kTRUE)
TStopwatch::CpuTime
Double_t CpuTime()
TStopwatch::Stop
void Stop()
TString
UniGenerateClasses::GenerateClasses
static int GenerateClasses(TString json_configuration_file)
Definition
UniGenerateClasses.cxx:104
generate_cxx_from_db
void generate_cxx_from_db(TString json_configuration_file="$VMCWORKDIR/database/tools/scheme/uni_db.json")
Definition
generate_cxx_from_db.C:2
database
tools
macro
generate_cxx_from_db.C
Generated on
for BmnRoot by
1.17.0