Remove dynamic exceptions
[anna.git] / source / comm / transport / TransportFactory.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/xml/Node.hpp>
10 #include <anna/xml/Attribute.hpp>
11
12 #include <anna/comm/TransportFactory.hpp>
13
14 using namespace std;
15 using namespace anna;
16
17 string comm::TransportFactory::asString() const
18 {
19   std::string msg("comm::TransportFactory { Name: ");
20   msg += a_name;
21   msg += functions::asText(" | OverQuotaSize: ", a_overQuotaSize);
22   return msg += " bytes }";
23 }
24
25 xml::Node* comm::TransportFactory::asXML(xml::Node* parent) const
26 {
27   xml::Node* result = parent->createChild("comm.TransportFactory");
28   result->createAttribute("Name", a_name);
29   result->createAttribute("OverQuotaSize", a_overQuotaSize);
30   return result;
31 }
32
33
34