#include <ZipPathComponent.h>
List of all members.
Detailed Description
Splits a file path into components.
Member Enumeration Documentation
The type of the prefix in path.
- Enumerator:
| ptNone |
There is no prefix present.
|
| ptUnc |
UNC path.
|
| ptUnicode |
Unicode path.
|
| ptUncWin |
Windows UNC path.
|
Constructor & Destructor Documentation
| CZipPathComponent::CZipPathComponent |
( |
LPCTSTR |
lpszFullPath ) |
[inline] |
Member Function Documentation
| static CZipString CZipPathComponent::AddPrefix |
( |
LPCTSTR |
path, |
|
|
bool |
isFolder = true |
|
) |
| [static] |
Adds an UNC prefix to the paths.
- Parameters:
-
| path | The path to add a prefix to. |
| isFolder | true if the path points to a folder; false otherwise. |
- Returns:
- The prefixed path.
| static void CZipPathComponent::AddPrefix |
( |
CZipString & |
path, |
|
|
bool |
isFolder = true |
|
) |
| [static] |
Adds an UNC prefix to the paths.
- Parameters:
-
| path | The path to add a prefix to. |
| isFolder | true if the path points to a folder; false otherwise. |
| static void CZipPathComponent::AppendSeparator |
( |
CZipString & |
szPath ) |
[inline, static] |
Appends a path separator to szPath, if it is not already appended.
- Parameters:
-
| szPath | The path to have a separator appended. |
| static void CZipPathComponent::Combine |
( |
CZipString & |
szPath, |
|
|
LPCTSTR |
lpszName |
|
) |
| [inline, static] |
Combines a path information with a file name information.
- Parameters:
-
| szPath | Provides the path information and retrieves the result. |
| lpszName | The filename to be appended to the path. |
| CZipString CZipPathComponent::GetFileDrive |
( |
) |
const [inline] |
Returns the drive of the file.
- Returns:
- The drive without a path separator at the end.
| CZipString CZipPathComponent::GetFileExt |
( |
) |
const [inline] |
Returns the extension of the file.
- Returns:
- The extension without the dot character.
| CZipString CZipPathComponent::GetFileName |
( |
) |
const [inline] |
Returns the filename.
- Returns:
- The filename including the extension and without the path.
| CZipString CZipPathComponent::GetFilePath |
( |
) |
const [inline] |
Returns the path part only.
- Returns:
- The file path without the filename and without a path separator at the end.
| CZipString CZipPathComponent::GetFileTitle |
( |
) |
const [inline] |
Returns the name of the file without the extension (and without the path).
- Returns:
- The title of the file.
| CZipString CZipPathComponent::GetFullPath |
( |
) |
const [inline] |
Returns the full path to the file.
- Returns:
- The full path information including the filename.
| CZipString CZipPathComponent::GetNoDrive |
( |
) |
const |
Returns the full path to the file without the drive.
- Returns:
- The path without the drive and without a path separator at the beginning.
| static bool CZipPathComponent::HasEndingSeparator |
( |
const CZipString & |
szPath ) |
[inline, static] |
Checks if szPath has a path separator appended.
- Parameters:
-
| szPath | The path to be tested. |
- Returns:
true, if szPath has a path separator at the end; false otherwise.
| static int CZipPathComponent::IsPrefixed |
( |
const CZipString & |
path ) |
[static] |
Returns the length of the path prefix detected.
- Parameters:
-
- Returns:
- The length of the path prefix or
0, if no prefix was detected.
| static bool CZipPathComponent::IsSeparator |
( |
TCHAR |
c ) |
[inline, static] |
Returns the value indicating whether the given character is a path separator.
- Parameters:
-
- Returns:
true, if c is a path separator; false otherwise.
| static void CZipPathComponent::RemoveSeparators |
( |
CZipString & |
szPath ) |
[inline, static] |
Removes path separators from the end of szPath
- Parameters:
-
| szPath | The path to have path separators removed. |
| static void CZipPathComponent::RemoveSeparatorsLeft |
( |
CZipString & |
szPath ) |
[inline, static] |
Removes path separators from the beginning of szPath.
- Parameters:
-
| szPath | The path to have path separators removed. |
| void CZipPathComponent::SetExtension |
( |
LPCTSTR |
lpszExt ) |
[inline] |
Sets the extension.
- Parameters:
-
| lpszExt | The extension to set. May contain the dot character at the beginning, but doesn't have to. |
| void CZipPathComponent::SetFileTitle |
( |
LPCTSTR |
lpszFileTitle ) |
[inline] |
Sets the file title (the name without the extension and without the path).
- Parameters:
-
| lpszFileTitle | The title to set. |
| void CZipPathComponent::SetFullPath |
( |
LPCTSTR |
lpszFullPath ) |
|
Sets the full path to the file.
- Parameters:
-
| lpszFullPath | The full path to the file including a filename. The last element in the path is assumed to be the filename. |
Member Data Documentation
A system specific default path separator.
The path without the filename and without path separators at the end and the beginning.
The drive (if the system path standard uses it). It does not include a path separator at the end.
The file extension without the dot character.
The filename without the extension.
The prefix (e.g. for the UNC path or Unicode path under Windows).
The documentation for this class was generated from the following file: