]> Creatis software - creaCLI.git/blobdiff - bbtk_Slicer_PKG/src/bbSlicerCreateaDICOMSeries.cxx
All Slicer modules succesfully compiled into BBTK boxes :P
[creaCLI.git] / bbtk_Slicer_PKG / src / bbSlicerCreateaDICOMSeries.cxx
index 1fe0e73025f30e2f6b7a0c2e4e74e2fc12696035..a51004b47b1509c593d2405fbbb0b52f9688aaa7 100644 (file)
@@ -11,26 +11,26 @@ namespace bbSlicer {
 
 int _argc =20;
 std::string lib = "/home/riveros/.slicer/Slicer4-bin/Slicer-build/lib/Slicer-4.0/cli-modules/libImageReadDicomWriteLib.so";
-char * _argv[ ] = { Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--patientName"  ) + Mthd::Aux::toString( bbGetInputpatientName( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--patientID"  ) + Mthd::Aux::toString( bbGetInputpatientID( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--patientComments"  ) + Mthd::Aux::toString( bbGetInputpatientComments( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--studyID"  ) + Mthd::Aux::toString( bbGetInputstudyID( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--studyDate"  ) + Mthd::Aux::toString( bbGetInputstudyDate( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--studyComments"  ) + Mthd::Aux::toString( bbGetInputstudyComments( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--studyDescription"  ) + Mthd::Aux::toString( bbGetInputstudyDescription( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--modality"  ) + Mthd::Aux::toString( bbGetInputmodality( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--manufacturer"  ) + Mthd::Aux::toString( bbGetInputmanufacturer( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--model"  ) + Mthd::Aux::toString( bbGetInputmodel( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--seriesNumber"  ) + Mthd::Aux::toString( bbGetInputseriesNumber( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--seriesDescription"  ) + Mthd::Aux::toString( bbGetInputseriesDescription( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--rescaleIntercept"  ) + Mthd::Aux::toString( bbGetInputrescaleIntercept( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--rescaleSlope"  ) + Mthd::Aux::toString( bbGetInputrescaleSlope( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( bbGetInputinputVolume( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--dicomDirectory"  ) + Mthd::Aux::toString( bbGetInputdicomDirectory( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--dicomPrefix"  ) + Mthd::Aux::toString( bbGetInputdicomPrefix( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--dicomNumberFormat"  ) + Mthd::Aux::toString( bbGetInputdicomNumberFormat( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--reverseImages"  ) + Mthd::Aux::toString( bbGetInputreverseImages( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--useCompression"  ) + Mthd::Aux::toString( bbGetInputuseCompression( ) ) ) };
+char * _argv[ ] = { Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--patientName"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputpatientName( ) ) ) ,"@@@@@"," --patientName ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--patientID"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputpatientID( ) ) ) ,"@@@@@"," --patientID ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--patientComments"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputpatientComments( ) ) ) ,"@@@@@"," --patientComments ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--studyID"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputstudyID( ) ) ) ,"@@@@@"," --studyID ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--studyDate"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputstudyDate( ) ) ) ,"@@@@@"," --studyDate ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--studyComments"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputstudyComments( ) ) ) ,"@@@@@"," --studyComments ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--studyDescription"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputstudyDescription( ) ) ) ,"@@@@@"," --studyDescription ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--modality"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputmodality( ) ) ) ,"@@@@@"," --modality ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--manufacturer"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputmanufacturer( ) ) ) ,"@@@@@"," --manufacturer ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--model"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputmodel( ) ) ) ,"@@@@@"," --model ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--seriesNumber"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputseriesNumber( ) ) ) ,"@@@@@"," --seriesNumber ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--seriesDescription"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputseriesDescription( ) ) ) ,"@@@@@"," --seriesDescription ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--rescaleIntercept"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputrescaleIntercept( ) ) ) ,"@@@@@"," --rescaleIntercept ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--rescaleSlope"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputrescaleSlope( ) ) ) ,"@@@@@"," --rescaleSlope ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputinputVolume( ) ) ) ,"@@@@@","") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--dicomDirectory"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputdicomDirectory( ) ) ) ,"@@@@@"," --dicomDirectory ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--dicomPrefix"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputdicomPrefix( ) ) ) ,"@@@@@"," --dicomPrefix ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--dicomNumberFormat"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputdicomNumberFormat( ) ) ) ,"@@@@@"," --dicomNumberFormat ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--reverseImages"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputreverseImages( ) ) ) ,"@@@@@"," --reverseImages ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--useCompression"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputuseCompression( ) ) ) ,"@@@@@"," --useCompression ") ) };
 
         // EO GENERATED
         this->execute( lib, _argc, _argv );