BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
2void 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}
Int_t gDebug
double Double_t
Double_t RealTime()
void Start(Bool_t reset=kTRUE)
Double_t CpuTime()
void Stop()
static int GenerateClasses(TString json_configuration_file)
void generate_cxx_from_db(TString json_configuration_file="$VMCWORKDIR/database/tools/scheme/uni_db.json")