/*========================================================================= Program: bbtk Module: $RCSfile: bbtkAtomicBlackBoxDescriptor.h,v $ Language: C++ Date: $Date: 2008/02/07 11:06:37 $ Version: $Revision: 1.1 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*/ /** * \file * \brief Class bbtk::AtomicBlackBoxDescriptor : structure containing the description of a AtomicBlackBox input (name, description, type, functor) */ /** * \class bbtk::AtomicBlackBoxDescriptor * \brief Structure containing the description of a AtomicBlackBox input (name, description, type, functor) */ #ifndef __bbtkAtomicBlackBoxDescriptor_h__ #define __bbtkAtomicBlackBoxDescriptor_h__ #include "bbtkBlackBoxDescriptor.h" #include "bbtkAtomicBlackBoxInputDescriptor.h" #include "bbtkAtomicBlackBoxOutputDescriptor.h" namespace bbtk { class BBTK_EXPORT AtomicBlackBoxDescriptor : public bbtk::BlackBoxDescriptor { public: AtomicBlackBoxDescriptor() { // Creates the input 'BoxProcessMode' AddInputDescriptor (new bbtk::AtomicBlackBoxInputDescriptor (typeid(AtomicBlackBoxDescriptor), "BoxProcessMode", "Sets the processing mode of the box (Pipeline | Always | Reactive)", new bbtk::AtomicBlackBoxTGetFunctor(&BlackBox::bbGetInputBoxProcessMode), new bbtk::AtomicBlackBoxTSetFunctor(&BlackBox::bbSetInputBoxProcessMode) ) ); // Creates the input 'BoxExecute' AddInputDescriptor (new bbtk::AtomicBlackBoxInputDescriptor (typeid(AtomicBlackBoxDescriptor), "BoxExecute", "Any signal received by this input executes the box", new bbtk::AtomicBlackBoxTGetFunctor(&BlackBox::bbGetInputBoxExecute), new bbtk::AtomicBlackBoxTSetFunctor(&BlackBox::bbSetInputBoxExecute) ) ); // Creates the output 'BoxChange' AddOutputDescriptor (new bbtk::AtomicBlackBoxOutputDescriptor (typeid(AtomicBlackBoxDescriptor), "BoxChange", "Signal modifications of the box", new bbtk::AtomicBlackBoxTGetFunctor(&BlackBox::bbGetOutputBoxChange), new bbtk::AtomicBlackBoxTSetFunctor(&BlackBox::bbSetOutputBoxChange) ) ); // AddToCategory("atomic box"); } }; } // namespace bbtk #endif