14 const char*
const int_t =
"int";
15 const char*
const string_t =
"string";
24int main(
int argc,
char **argv)
39 JParser<> zap(
"Auxiliary program to get serial number or object identifier of detector from database.");
41 zap[
's'] =
make_field(server) = getServernames();
46 zap[
'O'] =
make_field(option) =
"", int_t, string_t;
51 catch(
const exception &error) {
52 FATAL(error.what() << endl);
58 JDB::reset(usr, pwd, cookie);
60 if (is_integer(detid))
61 (option == string_t || option ==
"" ? cout << getDetector(to_value<int>(detid)) : cout << detid) << endl;
63 (option == int_t || option ==
"" ? cout << getDetector(detid) : cout << detid) << endl;
65 catch(
const exception& error) {
66 FATAL(error.what() << endl);
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Utility class to parse command line options.
int main(int argc, char **argv)
const char *const string_t
routing by string
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Wrapper class for server name.