Version: $Revision: 1.8 $
=========================================================================*/
-
-
#include "bbstdConcatStrings.h"
#include "bbstdPackage.h"
bbGetInputIn7() +
bbGetInputIn8() +
bbGetInputIn9() +
- bbGetInputIn10() );
+ bbGetInputIn10() );
+ bbSetOutputBox_ConcatStrings(this);
+
+ printf("EED ConcatStrings::Process Ups \n" );
+
}
-}
-// EO namespace bbstd
+
+}// EO 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();
};
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);
}
--- /dev/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)
+//=====
+#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 = " <<bbGetOutputOut() << std::endl;
+
+ if (bbGetInputType()==1)
+ {
+ printf("EED ConcatStrings_tool::Process In1=%s\n",bbGetInputIn1().c_str() );
+ bbGetInputBox_ConcatString()->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
--- /dev/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)
+//=====
+#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__
+