From 967b2087f477b9410540be010c28b45131d51bc9 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 14 Sep 2022 16:40:00 +0200 Subject: [PATCH] MeshManager --- packages/std/src/bbstdConcatStrings.cxx | 12 ++-- packages/std/src/bbstdConcatStrings.h | 2 + packages/std/src/bbstdConcatStrings_tool.cxx | 75 ++++++++++++++++++++ packages/std/src/bbstdConcatStrings_tool.h | 55 ++++++++++++++ 4 files changed, 139 insertions(+), 5 deletions(-) create mode 100644 packages/std/src/bbstdConcatStrings_tool.cxx create mode 100644 packages/std/src/bbstdConcatStrings_tool.h diff --git a/packages/std/src/bbstdConcatStrings.cxx b/packages/std/src/bbstdConcatStrings.cxx index 33ec9f9..aa4ccf2 100644 --- a/packages/std/src/bbstdConcatStrings.cxx +++ b/packages/std/src/bbstdConcatStrings.cxx @@ -33,8 +33,6 @@ Version: $Revision: 1.8 $ =========================================================================*/ - - #include "bbstdConcatStrings.h" #include "bbstdPackage.h" @@ -75,9 +73,13 @@ namespace bbstd bbGetInputIn7() + bbGetInputIn8() + bbGetInputIn9() + - bbGetInputIn10() ); + bbGetInputIn10() ); + bbSetOutputBox_ConcatStrings(this); + + printf("EED ConcatStrings::Process Ups \n" ); + } -} -// EO namespace bbstd + +}// EO namespace bbstd diff --git a/packages/std/src/bbstdConcatStrings.h b/packages/std/src/bbstdConcatStrings.h index 4cbbba2..f22f2f2 100644 --- a/packages/std/src/bbstdConcatStrings.h +++ b/packages/std/src/bbstdConcatStrings.h @@ -58,6 +58,7 @@ namespace bbstd BBTK_DECLARE_INPUT(In9, std::string); BBTK_DECLARE_INPUT(In10,std::string); BBTK_DECLARE_OUTPUT(Out,std::string); + BBTK_DECLARE_OUTPUT(Box_ConcatStrings,ConcatStrings*); BBTK_PROCESS(DoProcess); void DoProcess(); }; @@ -78,6 +79,7 @@ namespace bbstd BBTK_INPUT(ConcatStrings,In9, "String 9", std::string,""); BBTK_INPUT(ConcatStrings,In10,"String 10",std::string,""); BBTK_OUTPUT(ConcatStrings,Out,"Concatenated string",std::string,""); + BBTK_OUTPUT(ConcatStrings,Box_ConcatStrings,"bbtk Box ConcatStrings",ConcatStrings*,""); BBTK_END_DESCRIBE_BLACK_BOX(ConcatStrings); } diff --git a/packages/std/src/bbstdConcatStrings_tool.cxx b/packages/std/src/bbstdConcatStrings_tool.cxx new file mode 100644 index 0000000..544612e --- /dev/null +++ b/packages/std/src/bbstdConcatStrings_tool.cxx @@ -0,0 +1,75 @@ +//===== +// 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 "bbstdConcatStrings_tool.h" +#include "bbstdPackage.h" +namespace bbstd +{ + +BBTK_ADD_BLACK_BOX_TO_PACKAGE(std,ConcatStrings_tool) +BBTK_BLACK_BOX_IMPLEMENTATION(ConcatStrings_tool,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 ConcatStrings_tool::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 = " <bbSetOutputOut( bbGetInputIn1() ); + bbGetInputBox_ConcatString()->bbSignalOutputModification(std::string("Out")); +// bbGetInputBox_ConcatString()->bbSignalOutputModification(); + } // if Type == 1 + + +} + +//===== +// 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 ConcatStrings_tool::bbUserSetDefaultValues() +{ +// SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX +// Here we initialize the input 'In' to 0 + bbSetInputIn1(""); + bbSetInputBox_ConcatString(NULL); +} + +//===== +// 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 ConcatStrings_tool::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 ConcatStrings_tool::bbUserFinalizeProcessing() +{ +// THE FINALIZATION METHOD BODY : +// Here does nothing +// but this is where you should desallocate the internal/output pointers +// if any +} + +} // EO namespace bbstd diff --git a/packages/std/src/bbstdConcatStrings_tool.h b/packages/std/src/bbstdConcatStrings_tool.h new file mode 100644 index 0000000..bb035f8 --- /dev/null +++ b/packages/std/src/bbstdConcatStrings_tool.h @@ -0,0 +1,55 @@ +//===== +// 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) +//===== +#ifndef __bbstdConcatStrings_tool_h_INCLUDED__ +#define __bbstdConcatStrings_tool_h_INCLUDED__ + +#include "bbstd_EXPORT.h" +#include "bbtkAtomicBlackBox.h" +#include "iostream" + +#include "bbstdConcatStrings.h" + +namespace bbstd +{ + +class bbstd_EXPORT ConcatStrings_tool + : + public bbtk::AtomicBlackBox +{ + BBTK_BLACK_BOX_INTERFACE(ConcatStrings_tool,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) +//===== + BBTK_DECLARE_INPUT(In1,std::string); + BBTK_DECLARE_INPUT(Type,int); + BBTK_DECLARE_INPUT(Box_ConcatString,ConcatStrings*); + // BBTK_DECLARE_OUTPUT(Out,double); + BBTK_PROCESS(Process); + void Process(); +//===== +// 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) +//===== +}; + +BBTK_BEGIN_DESCRIBE_BLACK_BOX(ConcatStrings_tool,bbtk::AtomicBlackBox); +BBTK_NAME("ConcatStrings_tool"); +BBTK_AUTHOR("InfoDev"); +BBTK_DESCRIPTION("No Description."); +BBTK_CATEGORY("empty"); + + BBTK_INPUT(ConcatStrings_tool,In1,"String input",std::string,""); + BBTK_INPUT(ConcatStrings_tool,Type,"(default 0) 0:Nothing 1:Set Out",int,""); + BBTK_INPUT(ConcatStrings_tool,Box_ConcatString,"bbtk Box ConcatString",ConcatStrings*,""); + +// BBTK_OUTPUT(ConcatStrings_tool,Out,"First output",double,""); + +BBTK_END_DESCRIBE_BLACK_BOX(ConcatStrings_tool); +//===== +// 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) +//===== +} +// EO namespace bbstd + +#endif // __bbstdConcatStrings_tool_h_INCLUDED__ + -- 2.47.1