X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Fcore%2Futil%2FComponentManager.cpp;h=1607d9d2c0788dfd4732004f82c6eb0a3e75349d;hb=e14f6ba5183403d7bbf589ef87b0643b12a0f72c;hp=97bb7a156c00d972d7e7395ff2d2ebadc5610163;hpb=93366a0bda79e6fd6e7dad6316bfcf8cc82f5731;p=anna.git diff --git a/source/core/util/ComponentManager.cpp b/source/core/util/ComponentManager.cpp index 97bb7a1..1607d9d 100644 --- a/source/core/util/ComponentManager.cpp +++ b/source/core/util/ComponentManager.cpp @@ -19,7 +19,7 @@ anna::Component* anna::ComponentManager::find(const char* className) -throw() { +{ std::map ::iterator it = a_components.find(className); if(it != a_components.end()) return (*it).second; @@ -28,7 +28,7 @@ throw() { } void anna::ComponentManager::attach(anna::Component* component) -throw(anna::RuntimeException) { +noexcept(false) { LOGMETHOD(anna::TraceMethod tm("anna::ComponentManager", "attach(component)", ANNA_FILE_LOCATION)); if(component == NULL) @@ -39,7 +39,8 @@ throw(anna::RuntimeException) { if(already) { LOGINFORMATION( - std::string msg(already->asString()); + //std::string msg(already->asString()); + std::string msg(already->getClassName()); msg += " | Was previously attached !"; anna::Logger::information(msg, ANNA_FILE_LOCATION); ) @@ -55,7 +56,7 @@ throw(anna::RuntimeException) { } void anna::ComponentManager::detach(anna::Component* component) -throw(anna::RuntimeException) { +noexcept(false) { LOGMETHOD(anna::TraceMethod tm("anna::ComponentManager", "detach(component)", ANNA_FILE_LOCATION)); if(component == NULL) @@ -82,7 +83,7 @@ throw(anna::RuntimeException) { } anna::xml::Node* anna::ComponentManager::asXML(anna::xml::Node* parent) const -throw() { +{ anna::xml::Node* node(NULL); node = parent->createChild("anna.Components"); std::map ::const_iterator it;