1 #ifndef __bbstdRelay_h_INCLUDED_H__
2 #define __bbstdRelay_h_INCLUDED_H__
4 #include "bbtkAtomicBlackBox.h"
8 //=======================================================================
12 public bbtk::AtomicBlackBox
14 BBTK_USER_BLACK_BOX_INTERFACE(Relay,bbtk::AtomicBlackBox);
15 BBTK_DECLARE_INPUT(In,T);
16 BBTK_DECLARE_OUTPUT(Out,T);
17 BBTK_PROCESS(Process);
19 void Process() { bbSetOutputOut ( bbGetInputIn() ); }
21 //=======================================================================
23 //=======================================================================
24 BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(Relay);
25 BBTK_NAME(bbtk::HumanTypeName<T>()+"Relay");
26 BBTK_AUTHOR("laurent.guigues at creatis.insa-lyon.fr");
27 BBTK_CATEGORY("misc");
28 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.");
29 BBTK_TEMPLATE_INPUT(Relay,In,"Input",T);
30 BBTK_TEMPLATE_OUTPUT(Relay,Out,"Output",T);
31 BBTK_END_DESCRIBE_TEMPLATE_BLACK_BOX(Relay);
32 //=======================================================================
37 #endif // __bbstdRelay_h_INCLUDED_H__