X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=example%2Fhttp%2Fwims20XRServer%2Fmain.cpp;fp=example%2Fhttp%2Fwims20XRServer%2Fmain.cpp;h=511d5603299213ccf3eeb531f008b464734bae38;hp=667b7fbb1ead7619f8bc4b4e9cdc5474a8edf12a;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/example/http/wims20XRServer/main.cpp b/example/http/wims20XRServer/main.cpp index 667b7fb..511d560 100644 --- a/example/http/wims20XRServer/main.cpp +++ b/example/http/wims20XRServer/main.cpp @@ -50,7 +50,7 @@ public: delete a_request; } - static const char* className () throw () { return "http_rserver::ReceiverFactory"; } + static const char* className () { return "http_rserver::ReceiverFactory"; } private: struct Attribute { enum _v { ValueOne, ValueTwo, Operator, Result, Time, Max }; }; @@ -62,9 +62,9 @@ private: std::string a_serviceID; std::string a_guid; - void initialize () throw (RuntimeException); - void evRequest (ClientSocket&, const http::Request& request) throw (RuntimeException); - void evResponse (ClientSocket&, const http::Response&) throw (RuntimeException) {;} + void initialize () noexcept(false); + void evRequest (ClientSocket&, const http::Request& request) noexcept(false); + void evResponse (ClientSocket&, const http::Response&) noexcept(false) {;} }; class WIMS20ArithmeticServer : public comm::Application { @@ -76,9 +76,9 @@ private: ReceiverFactoryImpl a_receiverFactory; comm::ServerSocket* a_serverSocket; - void initialize () throw (RuntimeException); - void run () throw (RuntimeException); - xml::Node* asXML (xml::Node* app) const throw (); + void initialize () noexcept(false); + void run () noexcept(false); + xml::Node* asXML (xml::Node* app) const ; }; using namespace std; @@ -129,7 +129,7 @@ WIMS20ArithmeticServer::WIMS20ArithmeticServer () : } void WIMS20ArithmeticServer::initialize () - throw (RuntimeException) + noexcept(false) { CommandLine& cl (CommandLine::instantiate ()); @@ -146,7 +146,7 @@ void WIMS20ArithmeticServer::initialize () } void WIMS20ArithmeticServer::run () - throw (RuntimeException) + noexcept(false) { CommandLine& cl (CommandLine::instantiate ()); @@ -168,7 +168,7 @@ void WIMS20ArithmeticServer::run () } xml::Node* WIMS20ArithmeticServer::asXML (xml::Node* app) const - throw () + { xml::Node* node = app::Application::asXML (app); @@ -179,7 +179,7 @@ xml::Node* WIMS20ArithmeticServer::asXML (xml::Node* app) const } void MyHandler::initialize () - throw (RuntimeException) + noexcept(false) { CommandLine& cl (CommandLine::instantiate ()); @@ -209,7 +209,7 @@ void MyHandler::initialize () * URI: http://www.localhost.es/math/user@tid.es?Operator=*&ValueOne=20&ValueTwo=2&Time=10000 */ void MyHandler::evRequest (ClientSocket& clientSocket, const http::Request& request) - throw (RuntimeException) + noexcept(false) { LOGMETHOD (TraceMethod tm ("MyReceiver", "apply", ANNA_FILE_LOCATION));