X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2FcreaNewProject%2FNewProject%2Fbbtk_mySamplePackage_PKG%2Fsrc%2FbbmySamplePackagemySampleBox1.cxx;fp=appli%2FcreaNewProject%2FNewProject%2Fbbtk_mySamplePackage_PKG%2Fsrc%2FbbmySamplePackagemySampleBox1.cxx;h=79e6be443063ca2f327176a6c97990f42fea05bf;hb=aea7a7a670afd36baafabc8f924902551f852006;hp=0000000000000000000000000000000000000000;hpb=1da64827ea2514835b5dad8eba5bb13bebe6a4ac;p=crea.git diff --git a/appli/creaNewProject/NewProject/bbtk_mySamplePackage_PKG/src/bbmySamplePackagemySampleBox1.cxx b/appli/creaNewProject/NewProject/bbtk_mySamplePackage_PKG/src/bbmySamplePackagemySampleBox1.cxx new file mode 100644 index 0000000..79e6be4 --- /dev/null +++ b/appli/creaNewProject/NewProject/bbtk_mySamplePackage_PKG/src/bbmySamplePackagemySampleBox1.cxx @@ -0,0 +1,65 @@ + +#include "bbmySamplePackagemySampleBox1.h" +#include "bbmySamplePackagePackage.h" +namespace bbmySamplePackage +{ + +BBTK_ADD_BLACK_BOX_TO_PACKAGE(mySamplePackage,mySampleBox1) +BBTK_BLACK_BOX_IMPLEMENTATION(mySampleBox1,bbtk::AtomicBlackBox); + +void mySampleBox1::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') + + c.SetX(bbGetInputIn1()); + c.SetY(bbGetInputIn2()); + c.Execute(); + bbSetOutputOut(c.GetResult()); + + std::cout << "Output value = " <