// Add it to the TreeHandlerMap
mTreeHandlerMap[i_nameDB] = mLocalDatabase;
//Add additional DB from user Settings
addDBSettings();
// Add it to the TreeHandlerMap
mTreeHandlerMap[i_nameDB] = mLocalDatabase;
//Add additional DB from user Settings
addDBSettings();
//========================================================================
void Gimmick::CreateUserSettingsDirectory()
{
//========================================================================
void Gimmick::CreateUserSettingsDirectory()
{
// std::string st("C:/Documents and Settings/cervenansky/.gimmick/");
// boost::algorithm::replace_all( st,
// INVALID_FILE_SEPARATOR ,
// std::string st("C:/Documents and Settings/cervenansky/.gimmick/");
// boost::algorithm::replace_all( st,
// INVALID_FILE_SEPARATOR ,
GimmickMessage(1,"Directory '"<<GetUserSettingsDirectory()<<"' "
<< "does not exist : creating it"<<std::endl);
GimmickMessage(1,"Directory '"<<GetUserSettingsDirectory()<<"' "
<< "does not exist : creating it"<<std::endl);
if ( ! boost::filesystem::create_directory( GetUserSettingsDirectory() ) )
{
GimmickError("ERROR CREATING '"<<GetUserSettingsDirectory()<<"'");
}
}
if ( ! boost::filesystem::create_directory( GetUserSettingsDirectory() ) )
{
GimmickError("ERROR CREATING '"<<GetUserSettingsDirectory()<<"'");
}
}
std::string setDir=GetUserSettingsDirectory();
boost::algorithm::replace_all( setDir,
std::string setDir=GetUserSettingsDirectory();
boost::algorithm::replace_all( setDir,
crea::System::GetAppPath(name,PATH_MAX);
std::cout<<name<<std::endl;
crea::System::GetAppPath(name,PATH_MAX);
std::cout<<name<<std::endl;
std::cout <<"From: " << path <<std::endl;
std::cout <<"To: " << setDir <<std::endl;
boost::algorithm::replace_all( path,
INVALID_FILE_SEPARATOR ,
VALID_FILE_SEPARATOR);
std::cout <<"From: " << path <<std::endl;
std::cout <<"To: " << setDir <<std::endl;
boost::algorithm::replace_all( path,
INVALID_FILE_SEPARATOR ,
VALID_FILE_SEPARATOR);