X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fstd%2Fsrc%2FbbstdRelay.h;h=c0ef92d0ab181cb5922c4e10aa8dad484737297a;hb=4ad5b5ee44357ad873bc8c43230defb6d0a79879;hp=b41c9f4c3c74747cc20f03ab8b6d34af136a43be;hpb=d73a7833a28e6111e1e805efae5df3ab18a240e2;p=bbtk.git diff --git a/packages/std/src/bbstdRelay.h b/packages/std/src/bbstdRelay.h index b41c9f4..c0ef92d 100644 --- a/packages/std/src/bbstdRelay.h +++ b/packages/std/src/bbstdRelay.h @@ -1,32 +1,35 @@ #ifndef __bbstdRelay_h_INCLUDED_H__ #define __bbstdRelay_h_INCLUDED_H__ -#include "bbtkUserBlackBox.h" +#include "bbtkAtomicBlackBox.h" namespace bbstd { - + //======================================================================= template - class /*BBTK_EXPORT*/ Relay - : - public bbtk::UserBlackBox + class Relay + : + public bbtk::AtomicBlackBox { - BBTK_USER_BLACK_BOX_INTERFACE(Relay,bbtk::UserBlackBox); + BBTK_TEMPLATE_BLACK_BOX_INTERFACE(Relay,bbtk::AtomicBlackBox,T); 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_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(Relay,bbtk::AtomicBlackBox); BBTK_NAME(bbtk::HumanTypeName()+"Relay"); - BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr"); - BBTK_DESCRIPTION("Relays a "+bbtk::TypeName()); + BBTK_AUTHOR("laurent.guigues at creatis.insa-lyon.fr"); + BBTK_CATEGORY("misc"); + 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