X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fcomm%2FINetAddress.cpp;fp=source%2Fcomm%2FINetAddress.cpp;h=2a6bd187566ce93394c8515ead09231c97a5a11a;hp=f9dbd2d6d2be7df0c18f2aeb7ff5f2fa29ec44bc;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/comm/INetAddress.cpp b/source/comm/INetAddress.cpp index f9dbd2d..2a6bd18 100644 --- a/source/comm/INetAddress.cpp +++ b/source/comm/INetAddress.cpp @@ -18,7 +18,7 @@ using namespace std; using namespace anna; const comm::Device* comm::INetAddress::getDevice(const bool exceptionWhenNull) const -throw(RuntimeException) { +noexcept(false) { if(a_device == NULL && exceptionWhenNull == true) { string msg(asString()); msg += " | No device attached"; @@ -29,21 +29,21 @@ throw(RuntimeException) { } string comm::INetAddress::asString() const -throw() { +{ string result("comm::INetAddress { "); result += functions::asString(a_device); return result += anna::functions::asString(" | Port: %d }", a_port); } string comm::INetAddress::serialize() const -throw() { +{ in_addr_t inaddr = (a_device) ? a_device->getAddress() : 0; string result(Device::asString(inaddr)); return result += anna::functions::asString(".%d", a_port); } xml::Node* comm::INetAddress::asXML(xml::Node* parent) const -throw(RuntimeException) { +noexcept(false) { xml::Node* result = parent->createChild("comm.INetAddress"); if(a_device != NULL)