NWindows::NFile::NDirectory Namespace Reference


Classes

class  CTempFile
class  CTempFileW
class  CTempDirectory
class  CTempDirectoryW

Functions

static UINT GetCurrentCodePage ()
static UString GetUnicodePath (const CSysString &sysPath)
static CSysString GetSysPath (LPCWSTR sysPath)
bool MyGetWindowsDirectory (CSysString &path)
bool MyGetSystemDirectory (CSysString &path)
bool MySetFileAttributes (LPCWSTR fileName, DWORD fileAttributes)
bool MyRemoveDirectory (LPCWSTR pathName)
bool MyMoveFile (LPCWSTR existFileName, LPCWSTR newFileName)
bool MyCreateDirectory (LPCTSTR pathName)
bool MyCreateDirectory (LPCWSTR pathName)
bool CreateComplexDirectory (LPCTSTR _aPathName)
bool CreateComplexDirectory (LPCWSTR _aPathName)
bool DeleteFileAlways (LPCTSTR name)
bool DeleteFileAlways (LPCWSTR name)
static bool RemoveDirectorySubItems2 (const CSysString pathPrefix, const NFind::CFileInfo &fileInfo)
bool RemoveDirectoryWithSubItems (const CSysString &path)
static bool RemoveDirectorySubItems2 (const UString pathPrefix, const NFind::CFileInfoW &fileInfo)
bool MyGetShortPathName (LPCTSTR longPath, CSysString &shortPath)
bool MyGetFullPathName (LPCTSTR fileName, CSysString &resultPath, int &fileNamePartStartIndex)
bool MyGetFullPathName (LPCWSTR fileName, UString &resultPath, int &fileNamePartStartIndex)
bool MyGetFullPathName (LPCTSTR fileName, CSysString &path)
bool MyGetFullPathName (LPCWSTR fileName, UString &path)
bool GetOnlyName (LPCTSTR fileName, CSysString &resultName)
bool GetOnlyName (LPCWSTR fileName, UString &resultName)
bool GetOnlyDirPrefix (LPCTSTR fileName, CSysString &resultName)
bool GetOnlyDirPrefix (LPCWSTR fileName, UString &resultName)
bool MyGetCurrentDirectory (CSysString &path)
bool MySetCurrentDirectory (LPCWSTR path)
bool MySearchPath (LPCTSTR path, LPCTSTR fileName, LPCTSTR extension, CSysString &resultPath, UINT32 &filePart)
bool MySearchPath (LPCWSTR path, LPCWSTR fileName, LPCWSTR extension, UString &resultPath, UINT32 &filePart)
bool MyGetTempPath (CSysString &path)
UINT MyGetTempFileName (LPCTSTR dirPath, LPCTSTR prefix, CSysString &path)
UINT MyGetTempFileName (LPCWSTR dirPath, LPCWSTR prefix, UString &path)
bool CreateTempDirectory (LPCTSTR prefix, CSysString &dirName)
bool CreateTempDirectory (LPCWSTR prefix, UString &dirName)
bool MySetFileAttributes (LPCTSTR fileName, DWORD fileAttributes)
bool MyMoveFile (LPCTSTR existFileName, LPCTSTR newFileName)
bool MyRemoveDirectory (LPCTSTR pathName)
bool MySetCurrentDirectory (LPCTSTR path)
bool MySearchPath (LPCTSTR path, LPCTSTR fileName, LPCTSTR extension, CSysString &resultPath)
bool MySearchPath (LPCWSTR path, LPCWSTR fileName, LPCWSTR extension, UString &resultPath)


Function Documentation

bool NWindows::NFile::NDirectory::CreateComplexDirectory ( LPCWSTR  _aPathName  ) 

bool NWindows::NFile::NDirectory::CreateComplexDirectory ( LPCTSTR  _aPathName  ) 

bool NWindows::NFile::NDirectory::CreateTempDirectory ( LPCWSTR  prefix,
UString dirName 
)

bool NWindows::NFile::NDirectory::CreateTempDirectory ( LPCTSTR  prefix,
CSysString dirName 
)

bool NWindows::NFile::NDirectory::DeleteFileAlways ( LPCWSTR  name  ) 

bool NWindows::NFile::NDirectory::DeleteFileAlways ( LPCTSTR  name  ) 

static UINT NWindows::NFile::NDirectory::GetCurrentCodePage (  )  [inline, static]

Definition at line 24 of file FileDir.cpp.

References CP_ACP, and CP_OEMCP.

Referenced by GetSysPath(), and GetUnicodePath().

bool NWindows::NFile::NDirectory::GetOnlyDirPrefix ( LPCWSTR  fileName,
UString resultName 
)

Definition at line 370 of file FileDir.cpp.

References index, CStringBase< T >::Left(), and MyGetFullPathName().

bool NWindows::NFile::NDirectory::GetOnlyDirPrefix ( LPCTSTR  fileName,
CSysString resultName 
)

Definition at line 360 of file FileDir.cpp.

References index, CStringBase< T >::Left(), and MyGetFullPathName().

bool NWindows::NFile::NDirectory::GetOnlyName ( LPCWSTR  fileName,
UString resultName 
)

Definition at line 350 of file FileDir.cpp.

References index, CStringBase< T >::Mid(), and MyGetFullPathName().

bool NWindows::NFile::NDirectory::GetOnlyName ( LPCTSTR  fileName,
CSysString resultName 
)

Definition at line 340 of file FileDir.cpp.

References index, CStringBase< T >::Mid(), and MyGetFullPathName().

static CSysString NWindows::NFile::NDirectory::GetSysPath ( LPCWSTR  sysPath  )  [static]

static UString NWindows::NFile::NDirectory::GetUnicodePath ( const CSysString sysPath  )  [static]

Definition at line 25 of file FileDir.cpp.

References GetCurrentCodePage(), and MultiByteToUnicodeString().

Referenced by MyGetFullPathName(), MyGetTempFileName(), and MySearchPath().

bool NWindows::NFile::NDirectory::MyCreateDirectory ( LPCWSTR  pathName  ) 

bool NWindows::NFile::NDirectory::MyCreateDirectory ( LPCTSTR  pathName  ) 

Definition at line 100 of file FileDir.cpp.

References BOOLToBool, and NULL.

Referenced by CreateComplexDirectory(), CreateTempDirectory(), and MyCreateDirectory().

bool NWindows::NFile::NDirectory::MyGetCurrentDirectory ( CSysString path  ) 

bool NWindows::NFile::NDirectory::MyGetFullPathName ( LPCWSTR  fileName,
UString path 
)

Definition at line 333 of file FileDir.cpp.

References index, and MyGetFullPathName().

Referenced by MyOpenArchive().

bool NWindows::NFile::NDirectory::MyGetFullPathName ( LPCTSTR  fileName,
CSysString path 
)

Definition at line 326 of file FileDir.cpp.

References index, and MyGetFullPathName().

bool NWindows::NFile::NDirectory::MyGetFullPathName ( LPCWSTR  fileName,
UString resultPath,
int &  fileNamePartStartIndex 
)

bool NWindows::NFile::NDirectory::MyGetFullPathName ( LPCTSTR  fileName,
CSysString resultPath,
int &  fileNamePartStartIndex 
)

bool NWindows::NFile::NDirectory::MyGetShortPathName ( LPCTSTR  longPath,
CSysString shortPath 
)

bool NWindows::NFile::NDirectory::MyGetSystemDirectory ( CSysString path  ) 

Definition at line 38 of file FileDir.cpp.

References CStringBase< T >::GetBuffer(), and CStringBase< T >::ReleaseBuffer().

UINT NWindows::NFile::NDirectory::MyGetTempFileName ( LPCWSTR  dirPath,
LPCWSTR  prefix,
UString path 
)

UINT NWindows::NFile::NDirectory::MyGetTempFileName ( LPCTSTR  dirPath,
LPCTSTR  prefix,
CSysString path 
)

bool NWindows::NFile::NDirectory::MyGetTempPath ( CSysString path  ) 

bool NWindows::NFile::NDirectory::MyGetWindowsDirectory ( CSysString path  ) 

bool NWindows::NFile::NDirectory::MyMoveFile ( LPCTSTR  existFileName,
LPCTSTR  newFileName 
) [inline]

Definition at line 28 of file FileDir.h.

References BOOLToBool.

Referenced by CArchiveExtractCallback::GetStream().

bool NWindows::NFile::NDirectory::MyMoveFile ( LPCWSTR  existFileName,
LPCWSTR  newFileName 
)

Definition at line 92 of file FileDir.cpp.

References BOOLToBool, g_IsNT, and GetSysPath().

bool NWindows::NFile::NDirectory::MyRemoveDirectory ( LPCTSTR  pathName  )  [inline]

Definition at line 34 of file FileDir.h.

References BOOLToBool.

Referenced by CArchiveExtractCallback::GetStream().

bool NWindows::NFile::NDirectory::MyRemoveDirectory ( LPCWSTR  pathName  ) 

Definition at line 85 of file FileDir.cpp.

References BOOLToBool, g_IsNT, and GetSysPath().

bool NWindows::NFile::NDirectory::MySearchPath ( LPCWSTR  path,
LPCWSTR  fileName,
LPCWSTR  extension,
UString resultPath 
) [inline]

Definition at line 97 of file FileDir.h.

References MySearchPath().

bool NWindows::NFile::NDirectory::MySearchPath ( LPCTSTR  path,
LPCTSTR  fileName,
LPCTSTR  extension,
CSysString resultPath 
) [inline]

Definition at line 89 of file FileDir.h.

References MySearchPath().

bool NWindows::NFile::NDirectory::MySearchPath ( LPCWSTR  path,
LPCWSTR  fileName,
LPCWSTR  extension,
UString resultPath,
UINT32 filePart 
)

bool NWindows::NFile::NDirectory::MySearchPath ( LPCTSTR  path,
LPCTSTR  fileName,
LPCTSTR  extension,
CSysString resultPath,
UINT32 filePart 
)

Definition at line 411 of file FileDir.cpp.

References CStringBase< T >::GetBuffer(), and CStringBase< T >::ReleaseBuffer().

Referenced by MySearchPath().

bool NWindows::NFile::NDirectory::MySetCurrentDirectory ( LPCTSTR  path  )  [inline]

Definition at line 73 of file FileDir.h.

References BOOLToBool.

bool NWindows::NFile::NDirectory::MySetCurrentDirectory ( LPCWSTR  path  ) 

Definition at line 388 of file FileDir.cpp.

References BOOLToBool, g_IsNT, and GetSysPath().

bool NWindows::NFile::NDirectory::MySetFileAttributes ( LPCTSTR  fileName,
DWORD  fileAttributes 
) [inline]

Definition at line 22 of file FileDir.h.

References BOOLToBool.

Referenced by CArchiveExtractCallback::SetOperationResult().

bool NWindows::NFile::NDirectory::MySetFileAttributes ( LPCWSTR  fileName,
DWORD  fileAttributes 
)

Definition at line 78 of file FileDir.cpp.

References BOOLToBool, g_IsNT, and GetSysPath().

Referenced by DeleteFileAlways().

static bool NWindows::NFile::NDirectory::RemoveDirectorySubItems2 ( const UString  pathPrefix,
const NFind::CFileInfoW &  fileInfo 
) [static]

static bool NWindows::NFile::NDirectory::RemoveDirectorySubItems2 ( const CSysString  pathPrefix,
const NFind::CFileInfo &  fileInfo 
) [static]

bool NWindows::NFile::NDirectory::RemoveDirectoryWithSubItems ( const CSysString path  ) 


Generated on Sun May 25 00:21:48 2008 by  doxygen 1.5.6