2 // 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)
4 #include "bbstdStringWriter.h"
5 #include "bbstdPackage.h"
10 BBTK_ADD_BLACK_BOX_TO_PACKAGE(std,StringWriter)
11 BBTK_BLACK_BOX_IMPLEMENTATION(StringWriter,bbtk::AtomicBlackBox);
13 // 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)
15 void StringWriter::Process()
18 if (bbGetInputFileName()!="")
20 FILE *ff = fopen(bbGetInputFileName().c_str(),"w");
23 fprintf(ff,"%s \n",bbGetInputIn0().c_str());
24 fprintf(ff,"%s \n",bbGetInputIn1().c_str());
25 fprintf(ff,"%s \n",bbGetInputIn2().c_str());
26 fprintf(ff,"%s \n",bbGetInputIn3().c_str());
27 fprintf(ff,"%s \n",bbGetInputIn4().c_str());
28 fprintf(ff,"%s \n",bbGetInputIn5().c_str());
29 fprintf(ff,"%s \n",bbGetInputIn6().c_str());
30 fprintf(ff,"%s \n",bbGetInputIn7().c_str());
31 fprintf(ff,"%s \n",bbGetInputIn8().c_str());
32 fprintf(ff,"%s \n",bbGetInputIn9().c_str());
39 // 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)
41 void StringWriter::bbUserSetDefaultValues()
44 // SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
45 // Here we initialize the input 'In' to 0
56 bbSetInputFileName("");
60 // 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)
62 void StringWriter::bbUserInitializeProcessing()
65 // THE INITIALIZATION METHOD BODY :
67 // but this is where you should allocate the internal/output pointers
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)
75 void StringWriter::bbUserFinalizeProcessing()
78 // THE FINALIZATION METHOD BODY :
80 // but this is where you should desallocate the internal/output pointers