1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
13 #include <anna/core/core.hpp>
14 #include <anna/time/functions.hpp>
17 #include <rxSimpleTest.hpp>
19 // To calculate the current working directory and get an absolute path for traces:
24 int main(int argc, const char** argv) {
25 anna::Logger::setLevel(anna::Logger::Debug);
27 // Current working directory and absolute trace path file:
28 std::string trace_file = "./rxSimpleTest.trace";
30 anna::Logger::initialize("rxSimpleTest", new TraceWriter(trace_file.c_str(), 2048000));
31 anna::time::functions::initialize(); // before application instantiation (it have a anna::time object)
32 anna::time::functions::setControlPoint(); // start control point (application lifetime)
37 } catch(anna::Exception& ex) {
38 std::cout << ex.asString() << std::endl;