GlsMap Toolkit
1.8.0
|
#include <vpf_util.h>
Public Member Functions | |
FilePath (void) | |
FilePath (const FilePath &src) | |
FilePath (const char *const path, const bool isDirectory) | |
const char * | Append (const char *const name, const bool isDirectory, const bool forceUpperCase=true, const bool killTrailingWS=true) |
bool | IsValid (void) const |
const char * | GetFilePath (void) const |
Static Public Attributes | |
static const char | DIR_SEPARATOR = '/' |
Protected Types | |
enum | { MAX_PATH_LENGTH = 512 } |
Protected Attributes | |
WarningBool | _isValid |
char | _pathStr [MAX_PATH_LENGTH+1u] |
encapsulates full path / full filename to a directory / file
|
protected |
longest possible path
VPFUtil::FilePath::FilePath | ( | void | ) |
Ctor
VPFUtil::FilePath::FilePath | ( | const FilePath & | src | ) |
copy Ctor
VPFUtil::FilePath::FilePath | ( | const char *const | path, |
const bool | isDirectory | ||
) |
Construct from a path
path | path |
isDirectory | true if path is a directory path else false |
const char * VPFUtil::FilePath::Append | ( | const char *const | name, |
const bool | isDirectory, | ||
const bool | forceUpperCase = true , |
||
const bool | killTrailingWS = true |
||
) |
Append a filename or directory name. Check IsValid()
name | name of file or directory (should not end in DIR_SEPARATOR) |
isDirectory | true if appending a directory name else false |
forceUpperCase | [optional, defaults to true] true to force appended string to all uppercase |
killTrailingWS | [optional, defaults to true] true to kill any traling whitespace in appended string |
|
inline |
Get the file path string
|
inline |
Determine if the path is valid
|
protected |
true if path is valid else false
|
protected |
full path plus terminator
|
static |
directory separator char