Changeset 295 in dev for trunk/jenga
- Timestamp:
- Aug 22, 2007, 11:23:41 PM (17 years ago)
- Location:
- trunk/jenga
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jenga/include/common/Directory.h
r166 r295 19 19 string path; 20 20 public: 21 Directory( const string &path ) 22 : path( path ) 23 { 24 } 21 Directory( const string &path, bool isMake = false ); 25 22 26 23 string GetFullPath( const string &relationPath ); -
trunk/jenga/src/common/Directory.cpp
r166 r295 1 1 #include <boost/foreach.hpp> 2 2 #include <jenga/include/common/Directory.h> 3 #include <jenga/include/common/Exception.h> 4 5 #include <imagehlp.h> 3 6 4 7 using namespace std; 5 8 using namespace Jenga::Common; 9 10 Directory::Directory( const string &path, bool isMake ) 11 : path( path ) 12 { 13 if ( isMake ) 14 { 15 if (!::MakeSureDirectoryPathExists(path.c_str())) 16 { 17 Jenga::Throw( "MakeSureDirectoryPathExists failed!" ); 18 } 19 } 20 } 6 21 7 22 string Directory::GetFullPath( const string &relationPath )
Note:
See TracChangeset
for help on using the changeset viewer.