X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkPackage.h;h=1dfc854f4f0bb577e364157a21006084c770e1da;hb=8a15ae69662abfba701a970f9efee218e0b126d3;hp=fb7b32c375c6b7fad0ee18c82c3015b7a892b99b;hpb=998354bb81a4f450cae3a2263838d7d3b6024bac;p=bbtk.git diff --git a/kernel/src/bbtkPackage.h b/kernel/src/bbtkPackage.h index fb7b32c..1dfc854 100644 --- a/kernel/src/bbtkPackage.h +++ b/kernel/src/bbtkPackage.h @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkPackage.h,v $ Language: C++ - Date: $Date: 2008/02/05 12:16:55 $ - Version: $Revision: 1.4 $ + Date: $Date: 2008/03/07 08:40:14 $ + Version: $Revision: 1.5 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See doc/license.txt or @@ -105,7 +105,19 @@ namespace bbtk const BlackBoxMapType& GetBlackBoxMap() const { return mBlackBoxMap; } BlackBoxMapType& GetBlackBoxMap() { return mBlackBoxMap; } + // Factories management + /// Adds the factory to the set of factories which use the package + void AddFactory(Factory* f) { mFactorySet.insert(f); } + /// Removes the factory from the set of factories which use the package + void RemoveFactory(Factory* f) { mFactorySet.erase(f); } + + /// Gets the set of factories which use the package + std::set& GetFactorySet() { return mFactorySet; } + /// Gets the set of factories which use the package (const) + const std::set& GetFactorySet() const { return mFactorySet; } + private: + /// The name of the package std::string mName; /// The author of the package @@ -152,13 +164,16 @@ namespace bbtk std::string mTypeOut; }; - //typedef std::string AdaptorKey; - /// The type of map of adaptor descriptors typedef std::map< AdaptorKey, BlackBoxDescriptor*> AdaptorMapType; /// The map of adaptors descriptors AdaptorMapType mAdaptorMap; + + + /// The set of factories which contain the package + std::set mFactorySet; + }; // EO class Package //====================================================================