Changeset 623 in dev for trunk/ab5.0/jenga


Ignore:
Timestamp:
May 21, 2008, 11:02:07 PM (16 years ago)
Author:
dai_9181
Message:

Projectクラスをリファクタリング

Location:
trunk/ab5.0/jenga
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/jenga/include/common/Path.h

    r524 r623  
    5858    static std::string MakeFullPath( const std::string &relativePath, const std::string &baseDirPath );
    5959    static std::string MakeFullPathByCurrentDirectory( const std::string &relativePath );
     60    static std::string ExtractDirPath( const std::string &path );
    6061};
    6162
  • trunk/ab5.0/jenga/include/jenga.h

    r622 r623  
    1212#include "common/Path.h"
    1313#include "common/String.h"
     14#include "common/VectorSupporter.h"
  • trunk/ab5.0/jenga/projects/jenga/jenga.vcproj

    r622 r623  
    399399                >
    400400            </File>
     401            <File
     402                RelativePath="..\..\include\common\VectorSupporter.h"
     403                >
     404            </File>
    401405        </Filter>
    402406        <Filter
  • trunk/ab5.0/jenga/src/common/Path.cpp

    r518 r623  
    7777    return MakeFullPath( relativePath, Jenga::Common::Environment::GetCurrentDir() );
    7878}
     79std::string Jenga::Common::Path::ExtractDirPath( const std::string &filepath )
     80{
     81    Path path( filepath );
     82    std::string result = path.GetDriveName() + path.GetDirName();
     83    return result;
     84}
Note: See TracChangeset for help on using the changeset viewer.