Update date in Doxyfile
[anna.git] / source / comm / Application.cpp
1 // ANNA - Anna is Not Nothingness Anymore                                                         //
2 //                                                                                                //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo                         //
4 //                                                                                                //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite                           //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7
8
9 #include <anna/comm/Application.hpp>
10 #include <anna/comm/SureTransport.hpp>
11 #include <anna/comm/functions.hpp>
12 #include <anna/comm/Communicator.hpp>
13
14 using namespace std;
15 using namespace anna;
16
17 comm::Application::Application(const char *shortName, const char *title, const char *version, const char* date, const char* time) :
18   app::Application(shortName, title, version, date, time) {
19 }
20
21 comm::TransportFactory& comm::Application::getDefaultTransportFactory()
22 throw() {
23   return SureTransport::getFactory();
24 }
25
26 void comm::Application::signalTerminate()
27 throw(RuntimeException) {
28   Communicator* communicator = app::functions::component <Communicator> (ANNA_FILE_LOCATION);
29   communicator->requestStop();
30 }
31