X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkBlackBoxOutputDescriptor.h;h=c4196715c4153718ece6783acfdbd098bbe6fefc;hb=6ea571ab3b7a539aaaca066db3941f5017920209;hp=eb1164f9f46abe2557c935e1c5acc98d40e2b52c;hpb=a26195c366a89795288009cf7e20f11afa494970;p=bbtk.git diff --git a/kernel/src/bbtkBlackBoxOutputDescriptor.h b/kernel/src/bbtkBlackBoxOutputDescriptor.h index eb1164f..c419671 100644 --- a/kernel/src/bbtkBlackBoxOutputDescriptor.h +++ b/kernel/src/bbtkBlackBoxOutputDescriptor.h @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkBlackBoxOutputDescriptor.h,v $ Language: C++ - Date: $Date: 2008/01/22 15:02:00 $ - Version: $Revision: 1.1 $ + Date: $Date: 2008/02/06 14:14:22 $ + Version: $Revision: 1.2 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -36,18 +36,21 @@ namespace bbtk { - class BBTK_EXPORT BlackBoxOutputDescriptor { public: /// Ctor with name and description - BlackBoxOutputDescriptor( const std::string& name, + BlackBoxOutputDescriptor( TypeInfo creator_type_info, + const std::string& name, const std::string& description, bool copy_construct = true) - : mName(name), mDescription(description), + : mCreatorTypeInfo(creator_type_info), + mName(name), mDescription(description), mCopyConstruct(copy_construct) {} - + + /// Returns the TypeInfo of the BlackBoxDescriptor which created this descriptor + TypeInfo GetCreatorTypeInfo() { return mCreatorTypeInfo; } /// Returns the name of the output const std::string& GetName() const { return mName; } /// Returns the description of the output @@ -67,7 +70,11 @@ namespace bbtk private: /// Default ctor is private - BlackBoxOutputDescriptor() : mName(""), mDescription("") {} + BlackBoxOutputDescriptor() : mCreatorTypeInfo(typeid(void)), + mName(""), mDescription("") {} + + /// The TypeInfo of the BlackBoxDescriptor which created this descriptor + TypeInfo mCreatorTypeInfo; /// The name of the output std::string mName; /// The description of the output