X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=example%2Fdiameter%2FrxSimpleTest%2FrxSimpleTest.cpp;fp=example%2Fdiameter%2FrxSimpleTest%2FrxSimpleTest.cpp;h=12fde94d2fbd61c595b131e09bc834bd9acf54dc;hp=95a3580feddff373debb6afd9166c59e37ec6ef9;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/example/diameter/rxSimpleTest/rxSimpleTest.cpp b/example/diameter/rxSimpleTest/rxSimpleTest.cpp index 95a3580..12fde94 100755 --- a/example/diameter/rxSimpleTest/rxSimpleTest.cpp +++ b/example/diameter/rxSimpleTest/rxSimpleTest.cpp @@ -41,7 +41,7 @@ RxSimpleTest::RxSimpleTest() : anna::comm::Application("rxSimpleTest", "RxSimple a_workingNode = NULL; } -void RxSimpleTest::startService() throw(anna::RuntimeException) { +void RxSimpleTest::startService() noexcept(false) { // Stacks anna::diameter::stack::Engine &stackEngine = anna::diameter::stack::Engine::instantiate(); @@ -147,7 +147,7 @@ void RxSimpleTest::startService() throw(anna::RuntimeException) { ohm.registerOriginHost(originHostName, a_workingNode); } -anna::diameter::comm::OriginHost *RxSimpleTest::getOriginHost(const std::string &name) const throw(anna::RuntimeException) { +anna::diameter::comm::OriginHost *RxSimpleTest::getOriginHost(const std::string &name) const noexcept(false) { anna::diameter::comm::OriginHostManager &ohm = anna::diameter::comm::OriginHostManager::instantiate(); anna::diameter::comm::OriginHost *result = ohm.getOriginHost(name); @@ -157,14 +157,14 @@ anna::diameter::comm::OriginHost *RxSimpleTest::getOriginHost(const std::string return result; } -MyDiameterEntity *RxSimpleTest::getEntity() const throw(anna::RuntimeException) { +MyDiameterEntity *RxSimpleTest::getEntity() const noexcept(false) { MyDiameterEntity *result = (MyDiameterEntity *)(a_workingNode->getEntity()); if (!result) throw anna::RuntimeException("No entity created", ANNA_FILE_LOCATION); return result; } -MyLocalServer *RxSimpleTest::getServer() const throw(anna::RuntimeException) { +MyLocalServer *RxSimpleTest::getServer() const noexcept(false) { MyLocalServer *result = (MyLocalServer *)(a_workingNode->getDiameterServer()); if (!result) throw anna::RuntimeException("No local server created", ANNA_FILE_LOCATION); @@ -172,7 +172,7 @@ MyLocalServer *RxSimpleTest::getServer() const throw(anna::RuntimeException) { } void RxSimpleTest::initialize() -throw(anna::RuntimeException) { +noexcept(false) { anna::comm::Application::initialize(); CommandLine& cl(anna::CommandLine::instantiate()); anna::comm::Communicator::WorkMode::_v workMode(anna::comm::Communicator::WorkMode::Single); @@ -183,7 +183,7 @@ throw(anna::RuntimeException) { } void RxSimpleTest::run() -throw(anna::RuntimeException) { +noexcept(false) { LOGMETHOD(anna::TraceMethod tm("RxSimpleTest", "run", ANNA_FILE_LOCATION)); anna::diameter::stack::Engine::instantiate(); @@ -216,7 +216,7 @@ throw(anna::RuntimeException) { } anna::xml::Node* RxSimpleTest::asXML(anna::xml::Node* parent) const -throw() { +{ anna::xml::Node* result = parent->createChild("rxSimpleTest"); anna::comm::Application::asXML(result); // Timming: