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 #define bbtkDMessage(key,level,mess) \
00035 bbtkMessage(key,level,"["<<GetFullTypeName()<<"] "<<mess)
00036 #define bbtkDDebugMessage(key,level,mess) \
00037 bbtkDebugMessage(key,level,"["<<GetFullTypeName()<<"] "<<mess)
00038
00039 namespace bbtk
00040 {
00041 AtomicBlackBoxDescriptor::AtomicBlackBoxDescriptor()
00042 {
00043 bbtkDDebugMessage("object",3,"==> AtomicBlackBoxDescriptor()"<<std::endl);
00044
00045 AddInputDescriptor
00046 (new
00047 bbtk::AtomicBlackBoxInputDescriptor
00048 (typeid(AtomicBlackBoxDescriptor),
00049 "BoxProcessMode",
00050 "Sets the processing mode of the box (Pipeline | Always | Reactive)",
00051 "",
00052 new bbtk::AtomicBlackBoxTGetFunctor<BlackBox,std::string,std::string>(&BlackBox::bbGetInputBoxProcessMode),
00053 new bbtk::AtomicBlackBoxTSetFunctor<BlackBox,std::string,std::string>(&BlackBox::bbSetInputBoxProcessMode) ) );
00054
00055 AddInputDescriptor
00056 (new
00057 bbtk::AtomicBlackBoxInputDescriptor
00058 (typeid(AtomicBlackBoxDescriptor),
00059 "BoxExecute",
00060 "Any signal received by this input executes the box",
00061 "signal",
00062 new bbtk::AtomicBlackBoxTGetFunctor<BlackBox,Void,Void>(&BlackBox::bbGetInputBoxExecute),
00063 new bbtk::AtomicBlackBoxTSetFunctor<BlackBox,Void,Void>(&BlackBox::bbSetInputBoxExecute) ) );
00064
00065 AddOutputDescriptor
00066 (new
00067 bbtk::AtomicBlackBoxOutputDescriptor
00068 (typeid(AtomicBlackBoxDescriptor),
00069 "BoxChange",
00070 "Signals modifications of the box",
00071 "signal",
00072 new bbtk::AtomicBlackBoxTGetFunctor<BlackBox,Void,Void>(&BlackBox::bbGetOutputBoxChange),
00073 new bbtk::AtomicBlackBoxTSetFunctor<BlackBox,Void,Void>(&BlackBox::bbSetOutputBoxChange) ) );
00074
00075 AddToCategory("atomic box");
00076 bbtkDDebugMessage("object",3,"<== AtomicBlackBoxDescriptor()"<<std::endl);
00077 }
00078
00079
00080 AtomicBlackBoxDescriptor::~AtomicBlackBoxDescriptor()
00081 {
00082 bbtkDDebugMessage("object",3,"==> ~AtomicBlackBoxDescriptor()"<<std::endl);
00083 }
00084 }