//===== // 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 "bbstdStringWriter.h" #include "bbstdPackage.h" namespace bbstd { BBTK_ADD_BLACK_BOX_TO_PACKAGE(std,StringWriter) BBTK_BLACK_BOX_IMPLEMENTATION(StringWriter,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 StringWriter::Process() { if (bbGetInputFileName()!="") { FILE *ff = fopen(bbGetInputFileName().c_str(),"w"); if (ff!=NULL) { fprintf(ff,"%s \n",bbGetInputIn0().c_str()); fprintf(ff,"%s \n",bbGetInputIn1().c_str()); fprintf(ff,"%s \n",bbGetInputIn2().c_str()); fprintf(ff,"%s \n",bbGetInputIn3().c_str()); fprintf(ff,"%s \n",bbGetInputIn4().c_str()); fprintf(ff,"%s \n",bbGetInputIn5().c_str()); fprintf(ff,"%s \n",bbGetInputIn6().c_str()); fprintf(ff,"%s \n",bbGetInputIn7().c_str()); fprintf(ff,"%s \n",bbGetInputIn8().c_str()); fprintf(ff,"%s \n",bbGetInputIn9().c_str()); fclose(ff); } } } //===== // 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 StringWriter::bbUserSetDefaultValues() { // SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX // Here we initialize the input 'In' to 0 bbSetInputIn0(""); bbSetInputIn1(""); bbSetInputIn2(""); bbSetInputIn3(""); bbSetInputIn4(""); bbSetInputIn5(""); bbSetInputIn6(""); bbSetInputIn7(""); bbSetInputIn8(""); bbSetInputIn9(""); bbSetInputFileName(""); } //===== // 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 StringWriter::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 StringWriter::bbUserFinalizeProcessing() { // THE FINALIZATION METHOD BODY : // Here does nothing // but this is where you should desallocate the internal/output pointers // if any } } // EO namespace bbstd