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);
}
}
-
///////////////////////////////////////////////////////////////////////////
// create a DB from a attributes descriptor file for medical images //
// @param i_name : DB name //
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))
{
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,
mImageAdder.SetCurrentDatabase(d);
mImageAdder.SetTreeHandler(GetTreeHandler(d));
mImageAdder.SetSynchronizer(mSynchronizer);
- mImageAdder.AddFiles(filenames);
+ mImageAdder.AddFiles(filenames);
}
//========================================================================