Torque::Path

Engine/source/core/util/path.h

FileSystem filename representation.

More...

Public Types

enum
Separator {  OsSeparator = '/'
}

Public Functions

Path()
Path(const char * file)
Path(const String & file)
bool

Appends the argument's path component to the object's path component.

Returns the full file path without the volume root.

Returns the root and path.

bool
bool
bool
bool
bool
bool

Public Static Functions

Replace all '\' with '/'.

Remove "." and ".." relative paths.

Join two path or file name components together.

MakeRelativePath(const Path & makeRelative, const Path & relativeTo, U32 mode)

Take two paths and return the relative path between them.

Private Functions

Detailed Description

FileSystem filename representation.

Filenames has the following form: "root:path/file.ext"

Public Types

Separator

Enumerator

OsSeparator = '/'

Private Attributes

String mExt 
String mFile 
String mFullFileName 
String mFullPath 
bool mIsDirtyFileName 
bool mIsDirtyPath 
String mPath 
String mRoot 

Public Functions

Path()

Path(const char * file)

Path(const String & file)

appendPath(const Path & path)

Appends the argument's path component to the object's path component.

The object's root, filename and extension are unaffected.

getDirectory(U32 )

getDirectoryCount()

getExtension()

getFileName()

getFullFileName()

getFullPath()

getFullPathWithoutRoot()

Returns the full file path without the volume root.

getPath()

getRoot()

getRootAndPath()

Returns the root and path.

isAbsolute()

isDirectory()

isEmpty()

isRelative()

operator String()

operator!=(const Path & path)

operator=(const String & file)

operator==(const Path & path)

setExtension(const String & s)

setFileName(const String & s)

setPath(const String & s)

setRoot(const String & s)

Public Static Functions

CleanSeparators(String path)

Replace all '\' with '/'.

CompressPath(String path)

Remove "." and ".." relative paths.

Join(const String & , String::ValueType , const String & )

Join two path or file name components together.

MakeRelativePath(const Path & makeRelative, const Path & relativeTo, U32 mode)

Take two paths and return the relative path between them.

Private Functions

_join()

_split(String name)