X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Fapp%2FComponent.cpp;h=c8d0fbcc0ba585fe246d91e0fa5899dde437a940;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hp=7894b0a5840aed39d0e771d0f918a3eec71d1062;hpb=74730c7d0e4f713c932d6b06a07644d1c3c6c6c1;p=anna.git diff --git a/source/app/Component.cpp b/source/app/Component.cpp index 7894b0a..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 application 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); }