]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOGimmick.cpp
*** empty log message ***
[creaImageIO.git] / src2 / creaImageIOGimmick.cpp
index f5d21100df39391a3be34cd7251915189e6cc4d2..738256c0f477a27e5b864d5083c80e01212e37b2 100644 (file)
@@ -60,7 +60,7 @@ namespace creaImageIO
 
        std::string dbpath = GetLocalDatabasePath();
     // Create or open local database
-       std::string dpath= mCurrentDirectory + "/.gimmick/Shared/gimmick/localdatabase_Descriptor.txt";
+       std::string dpath= mCurrentDirectory + "/.gimmick/Shared/gimmick/localdatabase_Descriptor.dscp";
        boost::algorithm::replace_all( dpath,
                                       INVALID_FILE_SEPARATOR , 
                                       VALID_FILE_SEPARATOR);
@@ -91,7 +91,6 @@ namespace creaImageIO
                }
        }
 
   ///////////////////////////////////////////////////////////////////////////
   // create a DB from a attributes descriptor file for medical images      //
   // @param i_name : DB name                                                                                      //
@@ -225,7 +224,7 @@ namespace creaImageIO
        boost::filesystem::create_directory( setDir );
        setDir+="gimmick/";
        boost::filesystem::create_directory( setDir );
-       setDir+="localdatabase_Descriptor.txt";
+       setDir+="localdatabase_Descriptor.dscp";
 
        if(!boost::filesystem::is_regular(setDir))
        {
@@ -238,7 +237,7 @@ namespace creaImageIO
                path=path.substr(0,path.size()-1);
                path=path.substr(0,path.find_last_of("/"));
                //Creating directories
-               path+="/bin/Shared/gimmick/localdatabase_Descriptor.txt";
+               path+="/bin/Shared/gimmick/localdatabase_Descriptor.dscp";
                std::cout<<"From: "<<path<<std::endl;
                std::cout<<"To: "<<setDir<<std::endl;
                boost::algorithm::replace_all( path,
@@ -291,7 +290,7 @@ namespace creaImageIO
        mImageAdder.SetCurrentDatabase(d);
     mImageAdder.SetTreeHandler(GetTreeHandler(d));
        mImageAdder.SetSynchronizer(mSynchronizer);
-    mImageAdder.AddFiles(filenames);
+       mImageAdder.AddFiles(filenames);
        
   }
   //========================================================================