X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fstd%2Fsrc%2FbbstdRelay.h;h=8ce2f93936d41665a7c371f16d13c0d637fb93ae;hb=6c61e1295d4bedbd7b5abdb256173a2d6df80423;hp=92b848c021aec818c9248bb6208074c618175e16;hpb=e4de8cde07118f7b9059aaf5460645c61491bb0d;p=bbtk.git diff --git a/packages/std/src/bbstdRelay.h b/packages/std/src/bbstdRelay.h index 92b848c..8ce2f93 100644 --- a/packages/std/src/bbstdRelay.h +++ b/packages/std/src/bbstdRelay.h @@ -1,31 +1,36 @@ #ifndef __bbstdRelay_h_INCLUDED_H__ #define __bbstdRelay_h_INCLUDED_H__ -#include "bbtkUserBlackBox.h" +#include "bbtkAtomicBlackBox.h" namespace bbstd { + //======================================================================= template class Relay : - public bbtk::UserBlackBox + public bbtk::AtomicBlackBox { - BBTK_USER_BLACK_BOX_INTERFACE(Relay,bbtk::UserBlackBox); + BBTK_USER_BLACK_BOX_INTERFACE(Relay,bbtk::AtomicBlackBox); BBTK_DECLARE_INPUT(In,T); BBTK_DECLARE_OUTPUT(Out,T); BBTK_PROCESS(Process); protected: void Process() { bbSetOutputOut ( bbGetInputIn() ); } }; + //======================================================================= + //======================================================================= BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(Relay); BBTK_NAME(bbtk::HumanTypeName()+"Relay"); - BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr"); + BBTK_AUTHOR("laurent.guigues at creatis.insa-lyon.fr"); BBTK_CATEGORY("misc"); - BBTK_DESCRIPTION("Relays a "+bbtk::TypeName()); + BBTK_DESCRIPTION("Just copies the value of its input to its output. Usefull to plug an input of a complex box into different internal boxes."); BBTK_TEMPLATE_INPUT(Relay,In,"Input",T); BBTK_TEMPLATE_OUTPUT(Relay,Out,"Output",T); BBTK_END_DESCRIBE_TEMPLATE_BLACK_BOX(Relay); + //======================================================================= + } // namespace bbstd