anna::Component* anna::ComponentManager::find(const char* className)
-throw() {
+{
std::map <std::string, Component*>::iterator it = a_components.find(className);
if(it != a_components.end()) return (*it).second;
}
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)
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);
)
}
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)
}
anna::xml::Node* anna::ComponentManager::asXML(anna::xml::Node* parent) const
-throw() {
+{
anna::xml::Node* node(NULL);
node = parent->createChild("anna.Components");
std::map <std::string, Component*>::const_iterator it;