X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2FrxSimpleTest%2Fmain.cpp;fp=example%2Fdiameter%2FrxSimpleTest%2Fmain.cpp;h=0406d6aadc85ae9a0c1f5f35847f92973a7240eb;hb=26ae04c7e1eba19d02823bcc87c0ee9f6ce76186;hp=0000000000000000000000000000000000000000;hpb=398d53cb90e9f25dc89a46396225eef981f0ab24;p=anna.git diff --git a/example/diameter/rxSimpleTest/main.cpp b/example/diameter/rxSimpleTest/main.cpp new file mode 100755 index 0000000..0406d6a --- /dev/null +++ b/example/diameter/rxSimpleTest/main.cpp @@ -0,0 +1,43 @@ +// ANNA - Anna is Not Nothingness Anymore // +// // +// (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo // +// // +// See project site at http://redmine.teslayout.com/projects/anna-suite // +// See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE // + + +// Standard +#include + +// Project +#include +#include + +// Process +#include + +// To calculate the current working directory and get an absolute path for traces: +#include +#include + + +int main(int argc, const char** argv) { + anna::Logger::setLevel(anna::Logger::Debug); + + // Current working directory and absolute trace path file: + std::string trace_file = "./rxSimpleTest.trace"; + + anna::Logger::initialize("rxSimpleTest", new TraceWriter(trace_file.c_str(), 2048000)); + anna::time::functions::initialize(); // before application instantiation (it have a anna::time object) + anna::time::functions::setControlPoint(); // start control point (application lifetime) + RxSimpleTest app; + + try { + app.start(); + } catch(anna::Exception& ex) { + std::cout << ex.asString() << std::endl; + } + + return 0; +} +