Changeset 2750 for code/branches/network/src/core
- Timestamp:
- Mar 5, 2009, 2:58:42 PM (16 years ago)
- Location:
- code/branches/network/src/core
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/core/ArgumentCompletionFunctions.cc
r2728 r2750 76 76 std::string dir = startdirectory.string(); 77 77 if (dir.size() > 0 && dir[dir.size() - 1] == ':') 78 startdirectory = dir + CP_SLASH;78 startdirectory = dir + '/'; 79 79 } 80 80 #endif … … 86 86 { 87 87 if (boost::filesystem::is_directory(*file)) 88 dirlist.push_back(ArgumentCompletionListElement((*file).string() + CP_SLASH, getLowercase((*file).string()) + "/", (*file).BOOST_LEAF_FUNCTION() + "/"));88 dirlist.push_back(ArgumentCompletionListElement((*file).string() + '/', getLowercase((*file).string()) + '/', (*file).BOOST_LEAF_FUNCTION() + '/')); 89 89 else 90 90 filelist.push_back(ArgumentCompletionListElement((*file).string(), getLowercase((*file).string()), (*file).BOOST_LEAF_FUNCTION())); -
code/branches/network/src/core/CommandLine.cc
r2710 r2750 307 307 // They will not overwrite the arguments given directly 308 308 std::ifstream file; 309 file.open(filepath. file_string().c_str());309 file.open(filepath.string().c_str()); 310 310 args.clear(); 311 311 if (file) -
code/branches/network/src/core/ConfigFileManager.cc
r2731 r2750 241 241 // Open the file 242 242 std::ifstream file; 243 file.open(filepath. file_string().c_str(), std::fstream::in);243 file.open(filepath.string().c_str(), std::fstream::in); 244 244 if (file.is_open()) 245 245 { … … 347 347 348 348 std::ofstream file; 349 file.open(filepath. file_string().c_str(), std::fstream::out);349 file.open(filepath.string().c_str(), std::fstream::out); 350 350 file.setf(std::ios::fixed, std::ios::floatfield); 351 351 file.precision(6); -
code/branches/network/src/core/Core.cc
r2727 r2750 260 260 /*static*/ std::string Core::getMediaPathString() 261 261 { 262 return mediaPath_g.directory_string() + CP_SLASH;263 }264 /*static*/ std::string Core::getMediaPathPOSIXString()265 {266 262 return mediaPath_g.string() + '/'; 267 268 263 } 269 264 … … 274 269 /*static*/ std::string Core::getConfigPathString() 275 270 { 276 return configPath_g.directory_string() + CP_SLASH;277 }278 /*static*/ std::string Core::getConfigPathPOSIXString()279 {280 271 return configPath_g.string() + '/'; 281 272 } … … 286 277 } 287 278 /*static*/ std::string Core::getLogPathString() 288 {289 return logPath_g.directory_string() + CP_SLASH;290 }291 /*static*/ std::string Core::getLogPathPOSIXString()292 279 { 293 280 return logPath_g.string() + '/'; … … 456 443 { 457 444 ThrowException(General, std::string("The ") + it->second + " directory has been preoccupied by a file! \ 458 Please remove " + it->first. file_string());445 Please remove " + it->first.string()); 459 446 } 460 447 if (boost::filesystem::create_directories(it->first)) // function may not return true at all (bug?) -
code/branches/network/src/core/Core.h
r2710 r2750 83 83 static std::string getConfigPathString(); 84 84 static std::string getLogPathString(); 85 static std::string getMediaPathPOSIXString();86 static std::string getConfigPathPOSIXString();87 static std::string getLogPathPOSIXString();88 85 89 86 // fast access global variables. -
code/branches/network/src/core/Language.cc
r2710 r2750 210 210 // This creates the file if it's not existing 211 211 std::ofstream createFile; 212 createFile.open(filepath. file_string().c_str(), std::fstream::app);212 createFile.open(filepath.string().c_str(), std::fstream::app); 213 213 createFile.close(); 214 214 215 215 // Open the file 216 216 std::ifstream file; 217 file.open(filepath. file_string().c_str(), std::fstream::in);217 file.open(filepath.string().c_str(), std::fstream::in); 218 218 219 219 if (!file.is_open()) … … 261 261 // Open the file 262 262 std::ifstream file; 263 file.open(filepath. file_string().c_str(), std::fstream::in);263 file.open(filepath.string().c_str(), std::fstream::in); 264 264 265 265 if (!file.is_open()) … … 317 317 // Open the file 318 318 std::ofstream file; 319 file.open(filepath. file_string().c_str(), std::fstream::out);319 file.open(filepath.string().c_str(), std::fstream::out); 320 320 321 321 if (!file.is_open()) -
code/branches/network/src/core/LuaBind.cc
r2710 r2750 53 53 LuaBind::singletonRef_s = this; 54 54 55 this->includePath_ = Core::getMediaPath POSIXString();55 this->includePath_ = Core::getMediaPathString(); 56 56 57 57 luaState_ = lua_open(); … … 90 90 output_ = ""; 91 91 std::ifstream file; 92 file.open(filepath. file_string().c_str(), std::fstream::in);92 file.open(filepath.string().c_str(), std::fstream::in); 93 93 94 94 if (!file.is_open())
Note: See TracChangeset
for help on using the changeset viewer.