X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=include%2Fanna%2Fcore%2Futil%2FComponentManager.hpp;h=7a77bbaf9b84034aa02f51f1f854a4b322eb1a38;hb=cef452116c2966d7eaa65ff31ee7613bf3ae1b93;hp=2c77e3ba0f9b90e2f9d32282aef9d7f0e2f7b1cd;hpb=93366a0bda79e6fd6e7dad6316bfcf8cc82f5731;p=anna.git diff --git a/include/anna/core/util/ComponentManager.hpp b/include/anna/core/util/ComponentManager.hpp index 2c77e3b..7a77bba 100644 --- a/include/anna/core/util/ComponentManager.hpp +++ b/include/anna/core/util/ComponentManager.hpp @@ -34,14 +34,14 @@ public: Returns component instance for the class name provided, if not found. \return component instance for the class name provided, if not found. */ - Component* find(const char* className) throw(); + Component* find(const char* className) ; /** Class XML representation. \param parent XML node over which we will put instance information. \return XML documentcon with class content. */ - virtual xml::Node* asXML(xml::Node* parent) const throw(); + virtual xml::Node* asXML(xml::Node* parent) const ; private: @@ -52,8 +52,11 @@ private: // private constructor ComponentManager() {}; - void attach(Component*) throw(RuntimeException); - void detach(Component*) throw(RuntimeException); + // private destructor + virtual ~ComponentManager() {}; + + void attach(Component*) noexcept(false); + void detach(Component*) noexcept(false); friend class Singleton ;