X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Fapp%2FComponent.cpp;h=c8d0fbcc0ba585fe246d91e0fa5899dde437a940;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hp=ca3e515d3e19d260e2c1b8890459787b7233c2fd;hpb=f1060689be5a576ea46b9f95a91d19cc10444fba;p=anna.git diff --git a/source/app/Component.cpp b/source/app/Component.cpp index ca3e515..c8d0fbc 100644 --- a/source/app/Component.cpp +++ b/source/app/Component.cpp @@ -32,7 +32,7 @@ app::Component::Component(const char* className) : } } else if(Logger::isActive(Logger::Warning) == true) { string msg(asString()); - msg += " | Not connected to applicatino yet"; + msg += " | Application already running. You may initialize this component manually (lazy initialization)"; Logger::warning(msg, ANNA_FILE_LOCATION); } } @@ -46,7 +46,7 @@ app::Component::~Component() { } void app::Component::addPredecessor(const char* componentName) -throw() { +{ const std::string name(componentName); if((find(begin(), end(), name)) != end()) @@ -63,7 +63,7 @@ throw() { } void app::Component::initialize() -throw(RuntimeException) { +noexcept(false) { if(a_state == State::Running) return; @@ -105,17 +105,17 @@ throw(RuntimeException) { } void app::Component::attach() -throw(RuntimeException) { +noexcept(false) { app::functions::getApp().attach(this); } std::string app::Component::asString() const -throw() { +{ return anna::Component::asString(); } xml::Node* app::Component::asXML(xml::Node* parent) const -throw() { +{ return anna::Component::asXML(parent); }