From 41da2d7b97bd5c7853d2372fb2c4eb3c37798138 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 2 Mar 2016 20:03:45 +0100 Subject: [PATCH] #2868 BBTK Feature New Normal - Exit Box --- packages/std/src/bbstdExit.cxx | 73 ++++++++++++++++++++++++++++++++++ packages/std/src/bbstdExit.h | 45 +++++++++++++++++++++ 2 files changed, 118 insertions(+) create mode 100644 packages/std/src/bbstdExit.cxx create mode 100644 packages/std/src/bbstdExit.h diff --git a/packages/std/src/bbstdExit.cxx b/packages/std/src/bbstdExit.cxx new file mode 100644 index 0000000..a6a8cd9 --- /dev/null +++ b/packages/std/src/bbstdExit.cxx @@ -0,0 +1,73 @@ +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +#include "bbstdExit.h" +#include "bbstdPackage.h" +namespace bbstd +{ + +BBTK_ADD_BLACK_BOX_TO_PACKAGE(std,Exit) +BBTK_BLACK_BOX_IMPLEMENTATION(Exit,bbtk::AtomicBlackBox); +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +void Exit::Process() +{ + +// THE MAIN PROCESSING METHOD BODY +// Here we simply set the input 'In' value to the output 'Out' +// And print out the output value +// INPUT/OUTPUT ACCESSORS ARE OF THE FORM : +// void bbSet{Input|Output}NAME(const TYPE&) +// const TYPE& bbGet{Input|Output}NAME() const +// Where : +// * NAME is the name of the input/output +// (the one provided in the attribute 'name' of the tag 'input') +// * TYPE is the C++ type of the input/output +// (the one provided in the attribute 'type' of the tag 'input') + +// bbSetOutputOut( bbGetInputIn() ); +// std::cout << "Output value = " <