bbtkAtomicBlackBoxDescriptor.cxx
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #include "bbtkAtomicBlackBoxDescriptor.h"
00032 #include "bbtkBlackBox.h"
00033 #include "bbtkPackage.h"
00034
00035 namespace bbtk
00036 {
00037 AtomicBlackBoxDescriptor::AtomicBlackBoxDescriptor()
00038 {
00039 bbtkDebugMessage("object",3,"==> AtomicBlackBoxDescriptor::AtomicBlackBoxDescriptor()"<<std::endl);
00040
00041 AddInputDescriptor
00042 (new
00043 bbtk::AtomicBlackBoxInputDescriptor
00044 (typeid(AtomicBlackBoxDescriptor),
00045 "BoxProcessMode",
00046 "Sets the processing mode of the box (Pipeline | Always | Reactive)",
00047 "",
00048 new bbtk::AtomicBlackBoxTGetFunctor<BlackBox,std::string,std::string>(&BlackBox::bbGetInputBoxProcessMode),
00049 new bbtk::AtomicBlackBoxTSetFunctor<BlackBox,std::string,std::string>(&BlackBox::bbSetInputBoxProcessMode) ) );
00050
00051 AddInputDescriptor
00052 (new
00053 bbtk::AtomicBlackBoxInputDescriptor
00054 (typeid(AtomicBlackBoxDescriptor),
00055 "BoxExecute",
00056 "Any signal received by this input executes the box",
00057 "signal",
00058 new bbtk::AtomicBlackBoxTGetFunctor<BlackBox,Void,Void>(&BlackBox::bbGetInputBoxExecute),
00059 new bbtk::AtomicBlackBoxTSetFunctor<BlackBox,Void,Void>(&BlackBox::bbSetInputBoxExecute) ) );
00060
00061 AddOutputDescriptor
00062 (new
00063 bbtk::AtomicBlackBoxOutputDescriptor
00064 (typeid(AtomicBlackBoxDescriptor),
00065 "BoxChange",
00066 "Signals modifications of the box",
00067 "signal",
00068 new bbtk::AtomicBlackBoxTGetFunctor<BlackBox,Void,Void>(&BlackBox::bbGetOutputBoxChange),
00069 new bbtk::AtomicBlackBoxTSetFunctor<BlackBox,Void,Void>(&BlackBox::bbSetOutputBoxChange) ) );
00070
00071 AddToCategory("atomic box");
00072 bbtkDebugMessage("object",3,"<== AtomicBlackBoxDescriptor::AtomicBlackBoxDescriptor()"<<std::endl);
00073 }
00074
00075
00076 AtomicBlackBoxDescriptor::~AtomicBlackBoxDescriptor()
00077 {
00078 bbtkDebugMessage("object",3,"==> AtomicBlackBoxDescriptor::AtomicBlackBoxDescriptor()"<<std::endl);
00079 bbtkDebugMessage("object",3,"<== AtomicBlackBoxDescriptor::AtomicBlackBoxDescriptor()"<<std::endl);
00080 }
00081 }