X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=include%2Fanna%2Fcore%2Futil%2FComponent.hpp;fp=include%2Fanna%2Fcore%2Futil%2FComponent.hpp;h=6188f1ccf578647bdbd605248df3d22178178201;hb=f1060689be5a576ea46b9f95a91d19cc10444fba;hp=be4273cff50ad7b85f265719f2b879094c9c0c7a;hpb=1ccc9d9121c1c5d2bb009fedbc124aebc94bc56c;p=anna.git diff --git a/include/anna/core/util/Component.hpp b/include/anna/core/util/Component.hpp index be4273c..6188f1c 100644 --- a/include/anna/core/util/Component.hpp +++ b/include/anna/core/util/Component.hpp @@ -26,13 +26,7 @@ namespace anna { Component parent class It must be only one instance for each component, but we can't inherit them from anna::Singleton because the - programmer must have the posibility to re-implement the component. The main difference regarding anna components - is that anna component are not associated to the application, allowing to be used on non-anna applications - (instead of anna application, component is got internally through a singleton anna::ComponentManager). - In this way, some anna libraries could build resources based on this, allowing its use by many kind of projects. - - ANNA components excludes concept of predecessor component and start/stop procedures, because complete use of - components must be done over pure-anna applications with its anna::app::componet resources. + programmer must have the posibility to re-implement the component. \code Class* object = anna::functions::component (FILE_LOCATION); @@ -72,17 +66,15 @@ public: protected: + const std::string a_className; + /** Contructor. @param className Logical name for tha class. */ explicit Component(const char* className); -private: - - const std::string a_className; - - //Component (const Component& other); + Component (const Component& other); }; }