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 //
9 #ifndef example_diameter_rxSimpleTest_hpp
10 #define example_diameter_rxSimpleTest_hpp
18 #include <anna/core/core.hpp>
19 #include <anna/comm/comm.hpp>
20 #include <anna/time/Date.hpp>
21 #include <anna/diameter/codec/Message.hpp>
24 #include <MyCommunicator.hpp>
41 class MyDiameterEntity;
43 class MyDiameterEngine;
45 class RxSimpleTest : public anna::comm::Application {
48 anna::time::Date a_start_time;
51 MyCommunicator *a_communicator;
52 anna::timex::Engine* a_timeEngine;
53 anna::Millisecond a_admlMinResolution;
54 anna::diameter::comm::OriginHost *a_workingNode;
55 std::string a_initialWorkingDirectory;
58 void initialize() throw(anna::RuntimeException); // HTTP
59 void run() throw(anna::RuntimeException);
64 MyDiameterEntity *getEntity() const throw(anna::RuntimeException);
65 MyLocalServer *getServer() const throw(anna::RuntimeException);
66 MyDiameterEngine *getEngine() const throw(anna::RuntimeException);
67 MyCommunicator *getCommunicator() throw() { return a_communicator; }
68 void startService() throw(anna::RuntimeException);
69 anna::diameter::comm::OriginHost *getOriginHost(const std::string &name) const throw(anna::RuntimeException);
71 anna::xml::Node* asXML(anna::xml::Node* parent) const throw();