]> Creatis software - creaMiniTools.git/commitdiff
#3421 template_creaPatientsSystem
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Thu, 23 Dec 2021 15:56:44 +0000 (16:56 +0100)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Thu, 23 Dec 2021 15:56:44 +0000 (16:56 +0100)
bbtk_package_creaMiniTools/src/bbcreaMiniToolsCreateReport01.cxx
bbtk_package_creaMiniTools/src/bbcreaMiniToolsCreateReport01.h

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)
index b2897430405c4b7ab3d2b206f5e5d842e8acb9cd..3d581544b20df1930be6cca7d9e61ec7e6b51a66 100644 (file)
@@ -37,6 +37,11 @@ class bbcreaMiniTools_EXPORT CreateReport01
     BBTK_DECLARE_OUTPUT(Out08,std::vector<std::string>);
     BBTK_DECLARE_OUTPUT(Out09,std::vector<std::string>);
     BBTK_DECLARE_OUTPUT(Out10,std::vector<std::string>);
+    BBTK_DECLARE_OUTPUT(Out11,std::vector<std::string>);
+    BBTK_DECLARE_OUTPUT(Out12,std::vector<std::string>);
+    BBTK_DECLARE_OUTPUT(Out13,std::vector<std::string>);
+    BBTK_DECLARE_OUTPUT(Out14,std::vector<std::string>);
+    BBTK_DECLARE_OUTPUT(Out15,std::vector<std::string>);
   BBTK_PROCESS(Process);
   void Process();
 //===== 
@@ -67,6 +72,11 @@ BBTK_OUTPUT(CreateReport01,Out07,"Steps and then comments",std::vector<std::stri
 BBTK_OUTPUT(CreateReport01,Out08,"Steps and then comments",std::vector<std::string>,"");
 BBTK_OUTPUT(CreateReport01,Out09,"Steps and then comments",std::vector<std::string>,"");
 BBTK_OUTPUT(CreateReport01,Out10,"Steps and then comments",std::vector<std::string>,"");
+BBTK_OUTPUT(CreateReport01,Out11,"Steps and then comments",std::vector<std::string>,"");
+BBTK_OUTPUT(CreateReport01,Out12,"Steps and then comments",std::vector<std::string>,"");
+BBTK_OUTPUT(CreateReport01,Out13,"Steps and then comments",std::vector<std::string>,"");
+BBTK_OUTPUT(CreateReport01,Out14,"Steps and then comments",std::vector<std::string>,"");
+BBTK_OUTPUT(CreateReport01,Out15,"Steps and then comments",std::vector<std::string>,"");
 
 BBTK_END_DESCRIBE_BLACK_BOX(CreateReport01);
 //=====