wxString RESCUER::GetPartNameSuffix() { wxString suffix = wxT( "-RESCUE-" ); wxString pname = GetPrj()->GetProjectName(); for( size_t i = 0; i < pname.Len(); ++i ) { if( isspace( pname[i].GetValue() ) ) suffix.Append( '_' ); else suffix.Append( pname[i] ); } return suffix; }
ERMsg CProjectionManager::Load(const std::string& filePath, CProjectionPtr& pPrj) { ERMsg msg; ifStream file; msg = file.open(filePath); if (msg) { string src = file.GetText(); msg = CreateProjection(src.c_str()); if (msg) pPrj = GetPrj(src.c_str()); file.close(); } return msg; }