#include <bbtkBlackBoxInputDescriptor.h>
Public Types | |
enum | OptionType { MANDATORY, OPTIONAL } |
Public Member Functions | |
BlackBoxInputDescriptor (TypeInfo creator_type_info, const std::string &name, const std::string &description, const std::string &nature, bool copy_construct=true, OptionType option=MANDATORY) | |
Ctor with name and description. | |
OptionType | GetOption () const |
Returns the option of the input. | |
TypeInfo | GetCreatorTypeInfo () const |
Returns the TypeInfo of the BlackBoxDescriptor which created this descriptor. | |
const std::string & | GetName () const |
Returns the name of the in/output. | |
const std::string & | GetDescription () const |
Returns the description of the in/output. | |
const std::string & | GetNature () const |
Returns the nature of the in/output. | |
virtual TypeInfo | GetTypeInfo () const =0 |
Returns the type of the in/output. | |
virtual std::string | GetTypeName () const =0 |
Returns the name of the type of the in/output. | |
virtual DataInfo | GetDataInfo () const |
Returns the DataInfo of the input (Type+Nature). | |
virtual std::string | GetHumanTypeName () const =0 |
Returns the name of the type of the in/output. | |
virtual bool | IsPointerType () const =0 |
Returns true iff the type is a pointer to class. | |
bool | GetCopyConstruct () const |
Protected Member Functions | |
BlackBoxInputDescriptor () | |
Default ctor is reserved to children. | |
Private Attributes | |
OptionType | mOption |
The option of the input. |
Definition at line 48 of file bbtkBlackBoxInputDescriptor.h.
Definition at line 52 of file bbtkBlackBoxInputDescriptor.h.
00052 { 00053 MANDATORY, 00054 OPTIONAL 00055 } OptionType;
bbtk::BlackBoxInputDescriptor::BlackBoxInputDescriptor | ( | TypeInfo | creator_type_info, | |
const std::string & | name, | |||
const std::string & | description, | |||
const std::string & | nature, | |||
bool | copy_construct = true , |
|||
OptionType | option = MANDATORY | |||
) | [inline] |
Ctor with name and description.
Definition at line 59 of file bbtkBlackBoxInputDescriptor.h.
00066 : BlackBoxInputOutputDescriptor(creator_type_info,name, 00067 description,nature, 00068 copy_construct), 00069 mOption(option) 00070 {}
bbtk::BlackBoxInputDescriptor::BlackBoxInputDescriptor | ( | ) | [inline, protected] |
Default ctor is reserved to children.
Definition at line 76 of file bbtkBlackBoxInputDescriptor.h.
00076 : BlackBoxInputOutputDescriptor(), 00077 mOption(OPTIONAL) {}
bool bbtk::BlackBoxInputOutputDescriptor::GetCopyConstruct | ( | ) | const [inline, inherited] |
Returns true iff the in/output must be copied by the copy constructor of the box
Definition at line 91 of file bbtkBlackBoxInputOutputDescriptor.h.
00091 { return mCopyConstruct; }
TypeInfo bbtk::BlackBoxInputOutputDescriptor::GetCreatorTypeInfo | ( | ) | const [inline, inherited] |
Returns the TypeInfo of the BlackBoxDescriptor which created this descriptor.
Definition at line 71 of file bbtkBlackBoxInputOutputDescriptor.h.
Referenced by bbtk::Interpreter::commandNewGUI().
00071 { return mCreatorTypeInfo; }
virtual DataInfo bbtk::BlackBoxInputOutputDescriptor::GetDataInfo | ( | ) | const [inline, virtual, inherited] |
Returns the DataInfo of the input (Type+Nature).
Definition at line 83 of file bbtkBlackBoxInputOutputDescriptor.h.
Referenced by bbtk::Interpreter::commandNewGUI().
00084 { return DataInfo(this->GetTypeInfo(),mNature); }
const std::string& bbtk::BlackBoxInputOutputDescriptor::GetDescription | ( | ) | const [inline, inherited] |
Returns the description of the in/output.
Definition at line 75 of file bbtkBlackBoxInputOutputDescriptor.h.
Referenced by bbtk::WxGUIBlackBoxInfo::InsertInputOutput().
00075 { return mDescription; }
virtual std::string bbtk::BlackBoxInputOutputDescriptor::GetHumanTypeName | ( | ) | const [pure virtual, inherited] |
Returns the name of the type of the in/output.
Implemented in bbtk::AtomicBlackBoxInputDescriptor, bbtk::AtomicBlackBoxOutputDescriptor, bbtk::ComplexBlackBoxInputDescriptor, and bbtk::ComplexBlackBoxOutputDescriptor.
const std::string& bbtk::BlackBoxInputOutputDescriptor::GetName | ( | ) | const [inline, inherited] |
Returns the name of the in/output.
Definition at line 73 of file bbtkBlackBoxInputOutputDescriptor.h.
Referenced by bbtk::BlackBoxDescriptor::AddInputDescriptor(), bbtk::BlackBoxDescriptor::AddOutputDescriptor(), bbtk::ComplexBlackBox::bbWriteDotFileBlackBox(), bbtk::WxGUIBlackBoxInfo::InsertInputOutput(), bbtk::AtomicBlackBoxInputDescriptor::~AtomicBlackBoxInputDescriptor(), bbtk::AtomicBlackBoxOutputDescriptor::~AtomicBlackBoxOutputDescriptor(), bbtk::ComplexBlackBoxInputDescriptor::~ComplexBlackBoxInputDescriptor(), and bbtk::ComplexBlackBoxOutputDescriptor::~ComplexBlackBoxOutputDescriptor().
00073 { return mName; }
const std::string& bbtk::BlackBoxInputOutputDescriptor::GetNature | ( | ) | const [inline, inherited] |
Returns the nature of the in/output.
Definition at line 77 of file bbtkBlackBoxInputOutputDescriptor.h.
Referenced by bbtk::ComplexBlackBoxDescriptor::DefineInput(), bbtk::ComplexBlackBoxDescriptor::DefineOutput(), and bbtk::WxGUIBlackBoxInfo::InsertInputOutput().
00077 { return mNature; }
OptionType bbtk::BlackBoxInputDescriptor::GetOption | ( | ) | const [inline] |
Returns the option of the input.
Definition at line 72 of file bbtkBlackBoxInputDescriptor.h.
00072 { return mOption; }
virtual TypeInfo bbtk::BlackBoxInputOutputDescriptor::GetTypeInfo | ( | ) | const [pure virtual, inherited] |
Returns the type of the in/output.
Implemented in bbtk::AtomicBlackBoxInputDescriptor, bbtk::AtomicBlackBoxOutputDescriptor, bbtk::ComplexBlackBoxInputDescriptor, and bbtk::ComplexBlackBoxOutputDescriptor.
Referenced by bbtk::Interpreter::commandNewGUI(), bbtk::ComplexBlackBoxDescriptor::DefineInput(), and bbtk::ComplexBlackBoxDescriptor::DefineOutput().
virtual std::string bbtk::BlackBoxInputOutputDescriptor::GetTypeName | ( | ) | const [pure virtual, inherited] |
Returns the name of the type of the in/output.
Implemented in bbtk::AtomicBlackBoxInputDescriptor, bbtk::AtomicBlackBoxOutputDescriptor, bbtk::ComplexBlackBoxInputDescriptor, and bbtk::ComplexBlackBoxOutputDescriptor.
Referenced by bbtk::WxGUIBlackBoxInfo::InsertInputOutput().
virtual bool bbtk::BlackBoxInputOutputDescriptor::IsPointerType | ( | ) | const [pure virtual, inherited] |
Returns true iff the type is a pointer to class.
Implemented in bbtk::AtomicBlackBoxInputDescriptor, bbtk::AtomicBlackBoxOutputDescriptor, bbtk::ComplexBlackBoxInputDescriptor, and bbtk::ComplexBlackBoxOutputDescriptor.