X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2FLauncher.hpp;h=2d5b3a714da8efe2ac21eb4fc43561b4828a35ca;hp=dcc684d5e451169371e7e89bde77ad7eb4537773;hb=d723d5bf571eb48c641b092058eaa38bb6c4fcc8;hpb=61f1340da3cae5159d2e3bc14fc47c6d4bf9453e diff --git a/example/diameter/launcher/Launcher.hpp b/example/diameter/launcher/Launcher.hpp index dcc684d..2d5b3a7 100644 --- a/example/diameter/launcher/Launcher.hpp +++ b/example/diameter/launcher/Launcher.hpp @@ -23,12 +23,7 @@ // Process #include #include -#include - - -#define SH_COMMAND_TAG_FOR_REPLACE__CYCLE_ID "##cycleid##" -#define SH_COMMAND_TAG_FOR_REPLACE__TESTCASE_ID "##testcaseid##" -#define SH_COMMAND_TAG_FOR_REPLACE__TESTSTEP_ID "##teststepid##" +#include namespace anna { @@ -39,20 +34,21 @@ namespace anna { namespace codec { class Engine; } + namespace comm { + class OriginHost; + } } } class TestManager; -class OriginHost; class MyDiameterEntity; class MyLocalServer; class MyDiameterEngine; // OriginHost resources -class OriginHost; -typedef std::map origin_hosts_t; -typedef std::map::const_iterator origin_hosts_it; -typedef std::map::iterator origin_hosts_nc_it; +typedef std::map origin_hosts_t; +typedef std::map::const_iterator origin_hosts_it; +typedef std::map::iterator origin_hosts_nc_it; class Launcher : public anna::comm::Application { @@ -70,14 +66,12 @@ class Launcher : public anna::comm::Application { // Nodes deployment: origin_hosts_t a_originHosts; - OriginHost *a_workingNode; - OriginHost *a_operatedHost; // auxiliary for eventOperation + anna::diameter::comm::OriginHost *a_workingNode; + anna::diameter::comm::OriginHost *a_operatedHost; // auxiliary for eventOperation // comm resources: anna::comm::ServerSocket* a_httpServerSocket; // HTTP - const anna::Millisecond &getADMLMinResolution() const throw() { return a_admlMinResolution; } - std::string getSignalUSR2InputFile() const throw(); std::string getSignalUSR2OutputFile() const throw(); @@ -96,13 +90,14 @@ public: void startServices() throw(anna::RuntimeException); bool setWorkingNode(const std::string &name) throw(); - OriginHost *getOriginHost(const std::string &oh) const throw(anna::RuntimeException); - OriginHost *getOriginHost(const anna::diameter::codec::Message &message) const throw(anna::RuntimeException); + anna::diameter::comm::OriginHost *getOriginHost(const std::string &oh) const throw(anna::RuntimeException); + anna::diameter::comm::OriginHost *getOriginHost(const anna::diameter::codec::Message &message) const throw(anna::RuntimeException); bool uniqueOriginHost() const throw() { return (a_originHosts.size() == 1); } // Operated host for communication resources smart assignment //////////////////////////////////////////////////////////// void updateOperatedOriginHostWithMessage(const anna::diameter::codec::Message &message) throw(anna::RuntimeException); - OriginHost *getOperatedHost() const throw(anna::RuntimeException); + anna::diameter::comm::OriginHost *getWorkingNode() const throw(anna::RuntimeException); + anna::diameter::comm::OriginHost *getOperatedHost() const throw(anna::RuntimeException); MyDiameterEntity *getOperatedEntity() const throw(anna::RuntimeException); MyLocalServer *getOperatedServer() const throw(anna::RuntimeException); MyDiameterEngine *getOperatedEngine() const throw(anna::RuntimeException);