Path utility class.
Public Member Functions | |
| cPath () | |
| Empty constructor. More... | |
| cPath (const achar *aPath) | |
| UTF8 string constructor. More... | |
| cPath (const uchar *auszStr) | |
| Unicode string constructor. More... | |
| cPath (const achar *aszDirectory, const achar *aszFile) | |
| Directory + File constructor. More... | |
| tBool | IsEmpty () const |
| Return eTrue if the path is empty. More... | |
| tBool | IsNotEmpty () const |
| Return eTrue if the path is not empty. More... | |
| tBool | IsFile () const |
| Return eTrue if this path is a file. More... | |
| tBool | IsDirectory () const |
| Return eTrue if this path is a directory. More... | |
| tBool | HasDirectory () const |
| Return eTrue if this path has a directory. More... | |
| tBool | IsAbsolute () const |
| Return eTrue if the path is absolute. More... | |
| tBool | IsRelative () const |
| Return eTrue if the path is relative to the app's directory. More... | |
| cPath & | SetFile (const achar *aszFile) |
| Set the file of the path. More... | |
| const cString & | GetFile () const |
| Get the file of the path. More... | |
| cPath & | SetFileNoExt (const achar *aFileName) |
| cString | GetFileNoExt () const |
| cPath & | SetExtension (const achar *aszExtension) |
| Set the file extension of the path. More... | |
| const cString | GetExtension () const |
| Get the extension of this file. More... | |
| cPath & | SetDirectory (const achar *aszDirectory) |
| Set the directory of the path. More... | |
| const cString & | GetDirectory () const |
| Get the directory of the path. More... | |
| cString | GetDirectoryNoProtocol () const |
| Get the directory of the path without the protocol. More... | |
| tBool | HasProtocol () const |
| Check whether the path has a protocol defined. More... | |
| cPath & | SetProtocol (const achar *aszProtocol) |
| Set the file protocol of the path. More... | |
| const cString | GetProtocol () const |
| Get the protocol of this file. More... | |
| cPath & | AddDirectoryFront (const achar *aszDirectory) |
| Add a directory to the front of the path. More... | |
| cPath & | AddDirectoryBack (const achar *aszDirectory) |
| Add a directory to the bakc of the path. More... | |
| cPath & | RemoveDirectoryBack () |
| Remove the directory on the right of the path. More... | |
| cPath & | PushDirectory () |
| Push the current directory. More... | |
| cPath & | PopDirectory () |
| Pop the latest pushed directory. More... | |
| cPath & | SetPath (const achar *aszPath) |
| Set the full path. More... | |
| const cString & | GetPath () const |
| Get the full path. More... | |
| cPath & | operator= (const cPath &aPath) |
| Set the full path. More... | |
| cPath & | operator= (const achar *aszPath) |
| Set the full path. More... | |
| cPath & | operator= (const cString &aPath) |
| Set the full path. More... | |
Static Public Member Functions | |
| static cString & | FixPath (cString &aOut, const achar *aaszPath) |
| Convert a string to a standard path. More... | |
| cPath | ( | ) |
Empty constructor.
| tBool IsEmpty | ( | ) | const |
Return eTrue if the path is empty.
| tBool IsNotEmpty | ( | ) | const |
Return eTrue if the path is not empty.
| tBool IsFile | ( | ) | const |
Return eTrue if this path is a file.
| tBool IsDirectory | ( | ) | const |
Return eTrue if this path is a directory.
| tBool HasDirectory | ( | ) | const |
Return eTrue if this path has a directory.
| tBool IsAbsolute | ( | ) | const |
Return eTrue if the path is absolute.
| tBool IsRelative | ( | ) | const |
Return eTrue if the path is relative to the app's directory.
| const cString& GetFile | ( | ) | const |
Get the file of the path.
| cString GetFileNoExt | ( | ) | const |
| const cString GetExtension | ( | ) | const |
Get the extension of this file.
| const cString& GetDirectory | ( | ) | const |
Get the directory of the path.
| cString GetDirectoryNoProtocol | ( | ) | const |
Get the directory of the path without the protocol.
| tBool HasProtocol | ( | ) | const |
Check whether the path has a protocol defined.
| const cString GetProtocol | ( | ) | const |
Get the protocol of this file.
Add a directory to the front of the path.
| cPath& RemoveDirectoryBack | ( | ) |
Remove the directory on the right of the path.
| cPath& PushDirectory | ( | ) |
Push the current directory.
| cPath& PopDirectory | ( | ) |
Pop the latest pushed directory.
| const cString& GetPath | ( | ) | const |
Get the full path.
1.8.7