#include "KM3NeTDBClient.h" #include #include using namespace std; using namespace KM3NeT; using namespace KM3NeT::DB; int main(int argc, char *argv[]) { if (argc != 6) { cout << endl << "usage: ex1 " << endl; return -1; } try { auto client = Client::Create(Server::Default, argv[4], argv[5]); auto detx = client->DetX(argv[1], atoi(argv[2]), atoi(argv[3])); cout << endl << detx->str() << endl; } catch (DBException &x) { cout << endl << x.what() << endl; } return 0; }