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 }; };
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 {
ReceiverFactoryImpl <MyHandler> 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;
}
void WIMS20ArithmeticServer::initialize ()
- throw (RuntimeException)
+ noexcept(false)
{
CommandLine& cl (CommandLine::instantiate ());
}
void WIMS20ArithmeticServer::run ()
- throw (RuntimeException)
+ noexcept(false)
{
CommandLine& cl (CommandLine::instantiate ());
}
xml::Node* WIMS20ArithmeticServer::asXML (xml::Node* app) const
- throw ()
+
{
xml::Node* node = app::Application::asXML (app);
}
void MyHandler::initialize ()
- throw (RuntimeException)
+ noexcept(false)
{
CommandLine& cl (CommandLine::instantiate ());
* 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));