//===== // 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 "bbstdVectorFilterDouble.h" #include "bbstdPackage.h" namespace bbstd { BBTK_ADD_BLACK_BOX_TO_PACKAGE(std,VectorFilterDouble) BBTK_BLACK_BOX_IMPLEMENTATION(VectorFilterDouble,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 VectorFilterDouble::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') std::vector< std::vector * > pLstVec; std::vector< std::vector * > pLstVecOut; std::vector In0 = bbGetInputIn0(); std::vector In1 = bbGetInputIn1(); std::vector In2 = bbGetInputIn2(); std::vector In3 = bbGetInputIn3(); std::vector In4 = bbGetInputIn4(); std::vector In5 = bbGetInputIn5(); std::vector In6 = bbGetInputIn6(); std::vector In7 = bbGetInputIn7(); std::vector In8 = bbGetInputIn8(); std::vector In9 = bbGetInputIn9(); if (bbGetInputIn0().size()!=0) { pLstVec.push_back( &In0 ); } if (bbGetInputIn1().size()!=0) { pLstVec.push_back( &In1 ); } if (bbGetInputIn2().size()!=0) { pLstVec.push_back( &In2 ); } if (bbGetInputIn3().size()!=0) { pLstVec.push_back( &In3 ); } if (bbGetInputIn4().size()!=0) { pLstVec.push_back( &In4 ); } if (bbGetInputIn5().size()!=0) { pLstVec.push_back( &In5 ); } if (bbGetInputIn6().size()!=0) { pLstVec.push_back( &In6 ); } if (bbGetInputIn7().size()!=0) { pLstVec.push_back( &In7 ); } if (bbGetInputIn8().size()!=0) { pLstVec.push_back( &In8 ); } if (bbGetInputIn9().size()!=0) { pLstVec.push_back( &In9 ); } std::vector Out0; std::vector Out1; std::vector Out2; std::vector Out3; std::vector Out4; std::vector Out5; std::vector Out6; std::vector Out7; std::vector Out8; std::vector Out9; pLstVecOut.push_back( &Out0 ); pLstVecOut.push_back( &Out1 ); pLstVecOut.push_back( &Out2 ); pLstVecOut.push_back( &Out3 ); pLstVecOut.push_back( &Out4 ); pLstVecOut.push_back( &Out5 ); pLstVecOut.push_back( &Out6 ); pLstVecOut.push_back( &Out7 ); pLstVecOut.push_back( &Out8 ); pLstVecOut.push_back( &Out9 ); if (bbGetInputType()==0) // Erase duplicate lines { bool okSizeVec=true; int ipLstvec; for (ipLstvec=1;ipLstvec=2) { for (i=0;i=2 } // for pLstVec } // Type==2 bbSetOutputOut0( Out0 ); bbSetOutputOut1( Out1 ); bbSetOutputOut2( Out2 ); bbSetOutputOut3( Out3 ); bbSetOutputOut4( Out4 ); bbSetOutputOut5( Out5 ); bbSetOutputOut6( Out6 ); bbSetOutputOut7( Out7 ); bbSetOutputOut8( Out8 ); bbSetOutputOut9( Out9 ); } //===== // 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 VectorFilterDouble::bbUserSetDefaultValues() { // SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX // Here we initialize the input 'In' to 0 bbSetInputType(0); } //===== // 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 VectorFilterDouble::bbUserInitializeProcessing() { // THE INITIALIZATION METHOD BODY : // Here does nothing // but this is where you should allocate the internal/output pointers // if any } //===== // 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 VectorFilterDouble::bbUserFinalizeProcessing() { // THE FINALIZATION METHOD BODY : // Here does nothing // but this is where you should desallocate the internal/output pointers // if any } } // EO namespace bbstd