]> Creatis software - bbtk.git/blobdiff - packages/std/src/bbstdMakeFileName.cxx
=== MAJOR RELEASE ====
[bbtk.git] / packages / std / src / bbstdMakeFileName.cxx
index e450d2cbd0f7e364571c14f93c78f7ea1a8a627a..5ab0115bdedf0f814efc1602633726f5d6013e79 100644 (file)
@@ -5,28 +5,28 @@
 namespace bbstd
 {
 
-       BBTK_ADD_BLACK_BOX_TO_PACKAGE(std,MakeFileName)
-       BBTK_USER_BLACK_BOX_IMPLEMENTATION(MakeFileName,bbtk::AtomicBlackBox);
-
-       void MakeFileName::bbUserConstructor()
-   {
-      bbSetInputDirectory("");
-      bbSetInputFile("");
-      bbSetInputExtent("");
-   }
-
-       void MakeFileName::DoProcess()
-       {
-      std::string fileSep = bbtk::ConfigurationFile::GetInstance().Get_file_separator();
-      std::string fullFileName = bbGetInputDirectory();
-      if ( fullFileName.c_str()[fullFileName.size()-1] != '/' && fullFileName.c_str()[fullFileName.size()-1] != '\\' )
-         fullFileName += fileSep;
-      fullFileName += bbGetInputFile();
-      if ( bbGetInputExtent() != "")
-         if ( bbGetInputExtent()[0] != '.' )
-            fullFileName += ".";
-      fullFileName +=  bbGetInputExtent();
-      bbSetOutputOut( fullFileName );    
-       }
+  BBTK_ADD_BLACK_BOX_TO_PACKAGE(std,MakeFileName);
+  BBTK_BLACK_BOX_IMPLEMENTATION(MakeFileName,bbtk::AtomicBlackBox);
+  
+  void MakeFileName::bbUserConstructor()
+  {
+    bbSetInputDirectory("");
+    bbSetInputFile("");
+    bbSetInputExtent("");
+  }
+  
+  void MakeFileName::DoProcess()
+  {
+    std::string fileSep = bbtk::ConfigurationFile::GetInstance().Get_file_separator();
+    std::string fullFileName = bbGetInputDirectory();
+    if ( fullFileName.c_str()[fullFileName.size()-1] != '/' && fullFileName.c_str()[fullFileName.size()-1] != '\\' )
+      fullFileName += fileSep;
+    fullFileName += bbGetInputFile();
+    if ( bbGetInputExtent() != "")
+      if ( bbGetInputExtent()[0] != '.' )
+       fullFileName += ".";
+    fullFileName +=  bbGetInputExtent();
+    bbSetOutputOut( fullFileName );      
+  }
 }
 // EO namespace bbstd