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";
}
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)