#include #include #include "dbclient/KM3NeTDBClient.h" #include "JDB/JDB.hh" #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" /** * \file * * Auxiliary program to print host name of data base server. * \author mdejong */ int main(int argc, char **argv) { using namespace std; using namespace JPP; JServer server; int debug; try { JParser<> zap("Auxiliary program to print host name of data base server."); zap['s'] = make_field(server) = getServernames(); zap['d'] = make_field(debug) = 1; zap(argc, argv); } catch(const exception &error) { FATAL(error.what() << endl); } cout << JDB::getServer().HostName() << endl; }