X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkBlackBoxOutputDescriptor.h;h=8c799799263f0295fbe111484fe60bf0249e4a76;hb=c2a4b1893412e50a3d9abff221938a2d16c4a7cb;hp=eb1164f9f46abe2557c935e1c5acc98d40e2b52c;hpb=a26195c366a89795288009cf7e20f11afa494970;p=bbtk.git diff --git a/kernel/src/bbtkBlackBoxOutputDescriptor.h b/kernel/src/bbtkBlackBoxOutputDescriptor.h index eb1164f..8c79979 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/04/08 06:59:29 $ + Version: $Revision: 1.4 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -28,55 +28,32 @@ #ifndef __bbtkBlackBoxOutputDescriptor_h__ #define __bbtkBlackBoxOutputDescriptor_h__ - -#include "bbtkSystem.h" -#include "bbtkData.h" -#include "bbtkRTTI.h" +#include "bbtkBlackBoxInputOutputDescriptor.h" namespace bbtk { - class BBTK_EXPORT BlackBoxOutputDescriptor + : public BlackBoxInputOutputDescriptor { public: /// Ctor with name and description - BlackBoxOutputDescriptor( const std::string& name, + BlackBoxOutputDescriptor( TypeInfo creator_type_info, + const std::string& name, const std::string& description, + const std::string& nature, bool copy_construct = true) - : mName(name), mDescription(description), - mCopyConstruct(copy_construct) + : BlackBoxInputOutputDescriptor(creator_type_info,name, + description, + nature, + copy_construct) + {} + + protected: + /// Default ctor is reserved to children + BlackBoxOutputDescriptor() : + BlackBoxInputOutputDescriptor() {} - - /// Returns the name of the output - const std::string& GetName() const { return mName; } - /// Returns the description of the output - const std::string& GetDescription() const { return mDescription; } - /// Returns the type of the output - virtual TypeInfo GetTypeInfo() const = 0; - /// Returns the name of the type of the output - virtual std::string GetTypeName() const = 0; - /// Returns the name of the type of the output - virtual std::string GetHumanTypeName() const = 0; - /// Returns true iff the type is a pointer to class - virtual bool IsPointerType() const = 0; - /// Returns true iff the input must be copied - /// by the copy constructor of the box - bool GetCopyConstruct() const { return mCopyConstruct; } - - - private: - /// Default ctor is private - BlackBoxOutputDescriptor() : mName(""), mDescription("") {} - /// The name of the output - std::string mName; - /// The description of the output - std::string mDescription; - /// Does the output has to be copied by copy constructor - /// default = true. Must be set to false if it is - /// initialized by the user in bbUserCopyConstructor - /// (typically if it is a pointer) - bool mCopyConstruct; }; }