Commit fea13a2a authored by Matthieu Dorier's avatar Matthieu Dorier
Browse files

added example 1

parent 07963878
Client connection
=================
.. literalinclude:: ../../../examples/01_init_shutdown/main.cpp
:language: cpp
#include <iostream>
#include <string>
#include <hepnos.hpp>
using namespace hepnos;
int main(int argc, char** argv) {
if(argc != 2) {
std::cerr << "Usage: " << argv[0] << " <configfile>" << std::endl;
exit(-1)
}
std::string configFile(argv[1]);
DataStore datastore = DataStore::connect(configFile);
// ...
// only if you want to shutdown HEPnOS
datastore.shutdown();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment