X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=example%2Fcomm%2FrServer%2Fmain.cpp;fp=example%2Fcomm%2FrServer%2Fmain.cpp;h=768fc840b4207f2d6fdb8093172068c5e19da032;hp=d09404f821d135007c66e216005054b42b1a1061;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/example/comm/rServer/main.cpp b/example/comm/rServer/main.cpp index d09404f..768fc84 100644 --- a/example/comm/rServer/main.cpp +++ b/example/comm/rServer/main.cpp @@ -44,7 +44,7 @@ public: class MyReceiver : public Receiver { public: virtual ~MyReceiver() {;} - static const char* className () throw () { return "MyReceiver"; } + static const char* className () { return "MyReceiver"; } private: Request a_request; @@ -52,8 +52,8 @@ private: MyCommunicator* a_communicator; MyReceiver () : Receiver ("MyReceiver") { ; } - void initialize () throw (RuntimeException); - void apply (comm::ClientSocket &, const Message&) throw (RuntimeException); + void initialize () noexcept(false); + void apply (comm::ClientSocket &, const Message&) noexcept(false); friend class Allocator ; }; @@ -68,10 +68,10 @@ 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 signalTerminate () throw (RuntimeException); + void initialize () noexcept(false); + void run () noexcept(false); + xml::Node* asXML (xml::Node* app) const ; + void signalTerminate () noexcept(false); }; using namespace std; @@ -125,7 +125,7 @@ ArithmeticServer::ArithmeticServer () : // Inicializa el servidor de sockets. //----------------------------------------------------------------------------------------- void ArithmeticServer::initialize () - throw (RuntimeException) + noexcept(false) { LOGMETHOD (TraceMethod tm ("ArithmeticServer", "initialize", ANNA_FILE_LOCATION)); @@ -154,7 +154,7 @@ void ArithmeticServer::initialize () // Cuando hay un nuevo mensaje invocar�a Communicator::eventReceiveMessage //----------------------------------------------------------------------------------------- void ArithmeticServer::run () - throw (RuntimeException) + noexcept(false) { LOGMETHOD (TraceMethod tm ("ArithmeticServer", "run", ANNA_FILE_LOCATION)); @@ -177,7 +177,7 @@ void ArithmeticServer::run () } xml::Node* ArithmeticServer::asXML (xml::Node* app) const - throw () + { xml::Node* node = app::Application::asXML (app); @@ -188,20 +188,20 @@ xml::Node* ArithmeticServer::asXML (xml::Node* app) const } void ArithmeticServer::signalTerminate () - throw (RuntimeException) + noexcept(false) { a_communicator->terminate (); comm::Application::signalTerminate (); } void MyReceiver::initialize () - throw (RuntimeException) + noexcept(false) { a_communicator = app::functions::component (ANNA_FILE_LOCATION); } void MyReceiver::apply (ClientSocket& clientSocket, const Message& message) - throw (RuntimeException) + noexcept(false) { LOGMETHOD (TraceMethod tm ("MyReceiver", "apply", ANNA_FILE_LOCATION));