bbtk::BlackBoxInputDescriptor Class Reference

Abstract descriptor of an input of a black box. More...

#include <bbtkBlackBoxInputDescriptor.h>

Inheritance diagram for bbtk::BlackBoxInputDescriptor:

Inheritance graph
[legend]
Collaboration diagram for bbtk::BlackBoxInputDescriptor:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

Abstract descriptor of an input of a black box.

Definition at line 48 of file bbtkBlackBoxInputDescriptor.h.


Member Enumeration Documentation

enum bbtk::BlackBoxInputDescriptor::OptionType

Enumerator:
MANDATORY 
OPTIONAL 

Definition at line 52 of file bbtkBlackBoxInputDescriptor.h.

00052                  {
00053       MANDATORY,
00054       OPTIONAL
00055     } OptionType;


Constructor & Destructor Documentation

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) {}


Member Function Documentation

OptionType bbtk::BlackBoxInputDescriptor::GetOption (  )  const [inline]

Returns the option of the input.

Definition at line 72 of file bbtkBlackBoxInputDescriptor.h.

00072 { return mOption; }

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::NewGUI().

00071 { return mCreatorTypeInfo; }

Here is the caller graph for this function:

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(), and bbtk::WxGUIBlackBoxInfo::InsertInputOutput().

00073 { return mName; }

Here is the caller graph for this function:

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; }

Here is the caller graph for this function:

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; }

Here is the caller graph for this function:

virtual TypeInfo bbtk::BlackBoxInputOutputDescriptor::GetTypeInfo (  )  const [pure virtual, inherited]

Returns the type of the in/output.

Referenced by bbtk::ComplexBlackBoxDescriptor::DefineInput(), bbtk::ComplexBlackBoxDescriptor::DefineOutput(), and bbtk::Interpreter::NewGUI().

Here is the caller graph for this function:

virtual std::string bbtk::BlackBoxInputOutputDescriptor::GetTypeName (  )  const [pure virtual, inherited]

Returns the name of the type of the in/output.

Referenced by bbtk::WxGUIBlackBoxInfo::InsertInputOutput().

Here is the caller graph for this function:

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::NewGUI().

00084     { return DataInfo(this->GetTypeInfo(),mNature); }

Here is the caller graph for this function:

virtual std::string bbtk::BlackBoxInputOutputDescriptor::GetHumanTypeName (  )  const [pure virtual, inherited]

Returns the name of the type of the in/output.

virtual bool bbtk::BlackBoxInputOutputDescriptor::IsPointerType (  )  const [pure virtual, inherited]

Returns true iff the type is a pointer to class.

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; }


Member Data Documentation

OptionType bbtk::BlackBoxInputDescriptor::mOption [private]

The option of the input.

Definition at line 81 of file bbtkBlackBoxInputDescriptor.h.


The documentation for this class was generated from the following file:

Generated on Wed Nov 12 11:38:36 2008 for BBTK by  doxygen 1.5.6