]> Creatis software - creaMiniTools.git/blobdiff - bbtk_package_creaMiniTools/src/bbcreaMiniToolsCreateReport01.cxx
#3421 template_creaPatientsSystem
[creaMiniTools.git] / bbtk_package_creaMiniTools / src / bbcreaMiniToolsCreateReport01.cxx
index cd2250cf18887ee4b30d3eaf52bc33f5c6f16c5a..8827c1019d4496644db5f715a975fb8360d924f2 100644 (file)
@@ -47,6 +47,11 @@ void CreateReport01::Process()
     std::vector<std::string> lstOut08;
     std::vector<std::string> lstOut09;
     std::vector<std::string> lstOut10;
+    std::vector<std::string> lstOut11;
+    std::vector<std::string> lstOut12;
+    std::vector<std::string> lstOut13;
+    std::vector<std::string> lstOut14;
+    std::vector<std::string> lstOut15;
 
     std::vector< std::vector<std::string>* > pLstOut;
     
@@ -61,6 +66,11 @@ void CreateReport01::Process()
     pLstOut.push_back( &lstOut08 );
     pLstOut.push_back( &lstOut09 );
     pLstOut.push_back( &lstOut10 );
+    pLstOut.push_back( &lstOut11 );
+    pLstOut.push_back( &lstOut12 );
+    pLstOut.push_back( &lstOut13 );
+    pLstOut.push_back( &lstOut14 );
+    pLstOut.push_back( &lstOut15 );
 
 
     int iTitle2,sizeTitles2     = lstTitles2.size();
@@ -95,7 +105,7 @@ void CreateReport01::Process()
             size_t pos  = 0;
             pos         = pathFile.find( stdPATIENT , pos);
             pathFile.replace(pos, stdPATIENT.length(), lstPatients[i] );
-            printf("CreateReport01::Process %s \n", pathFile.c_str() );
+            printf("CreateReport01::Process Steps %s \n", pathFile.c_str() );
             ff=fopen(pathFile.c_str(), "r");
             strcpy(tmpValue,"?EED?");
             if (ff!=NULL)
@@ -131,12 +141,13 @@ void CreateReport01::Process()
             size_t pos  = 0;
             pos         = pathFile.find( stdPATIENT , pos);
             pathFile.replace(pos, stdPATIENT.length(), lstPatients[i] );
-            printf("CreateReport01::Process %s \n", pathFile.c_str() );
+            printf("CreateReport01::Process comments %s \n", pathFile.c_str() );
             ff=fopen(pathFile.c_str(), "r");
             strcpy(tmpValue,"?EED?");
             if (ff!=NULL)
             {
                 fgets(tmpValue,255,ff);
+                printf("tmpValue %s \n",tmpValue);
                 pLstOut[id]->push_back( tmpValue );
                 pLstOut[id]->push_back( " " );
                 pLstOut[id]->push_back( " " );
@@ -144,11 +155,11 @@ void CreateReport01::Process()
                 pLstOut[id]->push_back( " " );
                 fclose(ff);
             } else {
-                pLstOut[id]->push_back( " " );
-                pLstOut[id]->push_back( " " );
-                pLstOut[id]->push_back( " " );
-                pLstOut[id]->push_back( " " );
-                pLstOut[id]->push_back( " " );
+                pLstOut[id]->push_back( "? " );
+                pLstOut[id]->push_back( "? " );
+                pLstOut[id]->push_back( "? " );
+                pLstOut[id]->push_back( "? " );
+                pLstOut[id]->push_back( "? " );
             }// if ff
         } // for j
 
@@ -165,6 +176,11 @@ void CreateReport01::Process()
     bbSetOutputOut08( lstOut08 );
     bbSetOutputOut09( lstOut09 );
     bbSetOutputOut10( lstOut10 );
+    bbSetOutputOut11( lstOut11 );
+    bbSetOutputOut12( lstOut12 );
+    bbSetOutputOut13( lstOut13 );
+    bbSetOutputOut14( lstOut14 );
+    bbSetOutputOut15( lstOut15 );
 }
 //===== 
 // 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)