Torque::Path
Engine/source/core/util/path.h
FileSystem filename representation.
Public Types
enum
Separator { OsSeparator = '/' }
Private Attributes
Public Functions
Path()
bool
appendPath(const Path & path)
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
isEmpty()
bool
bool
operator!=(const Path & path)
bool
operator==(const Path & path)
setExtension(const String & s)
setFileName(const String & s)
Public Static Functions
CleanSeparators(String path)
Replace all '\' with '/'.
CompressPath(String path)
Remove "." and ".." relative paths.
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.