Definition at line 397 of file zfits.cc.
References Compress(), Decompress(), Configuration::DoParse(), Configuration::Get(), Configuration::Has(), PrintUsage(), ReplaceExt(), Configuration::SetPrintUsage(), and SetupConfiguration().
403 if (!conf.DoParse(argc, argv))
406 const bool decomp = conf.Get<
bool>(
"decompress");
408 const string ifile = conf.Get<
string>(
"in");
409 const string ofile = conf.Has(
"out") ? conf.Get<
string>(
"out") :
ReplaceExt(ifile, decomp);
void SetupConfiguration(Configuration &conf)
int Compress(const string &ifile, const string &ofile)
string ReplaceExt(const string &name, bool decomp)
Commandline parsing, resource file parsing and database access.
int Decompress(const string &ifile, const string &ofile)