]> Creatis software - bbtk.git/blob - kernel/src/bbtkComplexBlackBoxInputDescriptor.h
*** empty log message ***
[bbtk.git] / kernel / src / bbtkComplexBlackBoxInputDescriptor.h
1 /*=========================================================================
2                                                                                 
3   Program:   bbtk
4   Module:    $RCSfile: bbtkComplexBlackBoxInputDescriptor.h,v $
5   Language:  C++
6   Date:      $Date: 2008/04/08 06:59:30 $
7   Version:   $Revision: 1.3 $
8                                                                                 
9   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10   l'Image). All rights reserved. See Doc/License.txt or
11   http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details.
12                                                                                 
13      This software is distributed WITHOUT ANY WARRANTY; without even
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15      PURPOSE.  See the above copyright notices for more information.
16                                                                                 
17 =========================================================================*/
18
19 /**
20  *  \file 
21  *  \brief Class bbtk::ComplexBlackBoxInputDescriptor : structure containing the description of a ComplexBlackBox input (name, description, type, mapping)
22  */
23 /**
24  * \class bbtk::ComplexBlackBoxInputDescriptor
25  * \brief Structure containing the description of a ComplexBlackBox input (name, description, type, mapping)
26  */
27
28 #ifndef __bbtkComplexBlackBoxInputDescriptor_h__
29 #define __bbtkComplexBlackBoxInputDescriptor_h__
30
31 #include "bbtkBlackBoxInputDescriptor.h"
32 #include "bbtkMessageManager.h"
33
34 namespace bbtk
35 {
36
37
38   class BBTK_EXPORT ComplexBlackBoxInputDescriptor : 
39     public bbtk::BlackBoxInputDescriptor
40   {
41   public:
42       
43     ComplexBlackBoxInputDescriptor( TypeInfo creator_type_info,
44                                     const std::string& name,
45                                     const std::string& description,
46                                     const std::string& nature,
47                                     const std::string& target,
48                                     const std::string& input,
49                                     TypeInfo type);
50     
51     ~ComplexBlackBoxInputDescriptor();
52     
53     /// Returns the type of the input
54     TypeInfo GetTypeInfo() const { return mType; }
55     /// Returns the name of the type of the input
56     std::string GetTypeName() const { return TypeName(mType); }
57     /// Returns the name of the type of the input
58     std::string GetHumanTypeName() const { return HumanTypeName(mType); }
59     /// Returns the target black box 
60     const std::string& GetTarget() const { return mTarget; }
61     /// Returns the input 
62     const std::string& GetInput() const { return mInput; }
63     /// 
64     bool IsPointerType() const { return false; }
65     
66     
67   private:
68     /// Default ctor is private 
69     ComplexBlackBoxInputDescriptor() : 
70       BlackBoxInputDescriptor(typeid(void),"","",""),
71       mType(typeid(void)) {}
72     std::string mTarget;
73     std::string mInput;
74     TypeInfo mType;
75   };
76
77   
78 }
79 // namespace bbtk
80 #endif