class MyReceiver : public Receiver {
public:
- static const char* className () throw () { return "MyReceiver"; }
+ virtual ~MyReceiver() {;}
+ static const char* className () { return "MyReceiver"; }
private:
Request a_request;
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 <MyReceiver>;
};
public:
ArithmeticServer ();
- comm::DatagramSocket* getOutput () throw () { return a_output; }
+ comm::DatagramSocket* getOutput () { return a_output; }
private:
MyCommunicator* a_communicator;
comm::DatagramSocket* a_input;
comm::DatagramSocket* a_output;
- 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;
// Inicializa el servidor de sockets.
//-----------------------------------------------------------------------------------------
void ArithmeticServer::initialize ()
- throw (RuntimeException)
+ noexcept(false)
{
CommandLine& cl (CommandLine::instantiate ());
// Cuando hay un nuevo mensaje invocar�a Communicator::eventReceiveMessage
//-----------------------------------------------------------------------------------------
void ArithmeticServer::run ()
- throw (RuntimeException)
+ noexcept(false)
{
CommandLine& cl (CommandLine::instantiate ());
}
xml::Node* ArithmeticServer::asXML (xml::Node* app) const
- throw ()
+
{
xml::Node* node = app::Application::asXML (app);
}
void MyReceiver::initialize ()
- throw (RuntimeException)
+ noexcept(false)
{
a_communicator = app::functions::component <MyCommunicator> (ANNA_FILE_LOCATION);
}
void MyReceiver::apply (ClientSocket&, const Message& message)
- throw (RuntimeException)
+ noexcept(false)
{
LOGMETHOD (TraceMethod tm ("MyReceiver", "apply", ANNA_FILE_LOCATION));