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