Changeset 749 in dev for trunk/ab5.0/jenga
- Timestamp:
- Sep 15, 2008, 6:06:34 PM (16 years ago)
- Location:
- trunk/ab5.0/jenga
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/jenga/include/common/Path.h
r630 r749 39 39 return driveName; 40 40 } 41 const std::string &GetDirName() const41 const std::string GetDirPath() const 42 42 { 43 return d irName;43 return driveName + dirName; 44 44 } 45 45 const std::string &GetFileName() const … … 50 50 { 51 51 return ext; 52 } 53 const std::string GetFullFileName() const 54 { 55 return fileName + ext; 52 56 } 53 57 const std::string &GetFullPath() const -
trunk/ab5.0/jenga/src/common/FileSystem.cpp
r694 r749 11 11 12 12 Jenga::Common::Path path( tempFindStr ); 13 std::string dirPath = path.GetD riveName() + path.GetDirName();13 std::string dirPath = path.GetDirPath(); 14 14 if( !dirPath.empty() && dirPath[dirPath.size()-1] == '\\' ) 15 15 { -
trunk/ab5.0/jenga/src/common/Path.cpp
r623 r749 79 79 std::string Jenga::Common::Path::ExtractDirPath( const std::string &filepath ) 80 80 { 81 Path path( filepath ); 82 std::string result = path.GetDriveName() + path.GetDirName(); 83 return result; 81 return Path( filepath ).GetDirPath(); 84 82 }
Note:
See TracChangeset
for help on using the changeset viewer.