Castor3D 0.16.0
Multiplatform 3D engine
|
#include <Path.hpp>
Public Member Functions | |
CU_API | Path ()=default |
CU_API | ~Path ()=default |
CU_API | Path (char const *data) |
Constructor from a char array. | |
CU_API | Path (wchar_t const *data) |
Constructor from a wchar_t array. | |
CU_API | Path (String const &data) |
Constructor from a String. | |
CU_API | Path (StringView data) |
Constructor from a String. | |
CU_API | Path (Path const &data) |
Copy Constructor. | |
CU_API | Path (Path &&data) noexcept |
Move Constructor. | |
CU_API Path & | operator= (Path const &data) |
Copy assignment operator. | |
CU_API Path & | operator= (Path &&data) noexcept |
Move assignment operator. | |
CU_API Path & | operator/= (Path const &path) |
Appends a path to the current path. adds the separator if needed. | |
CU_API Path & | operator/= (StringView string) |
adds a string to the current path. Adds the separator if needed | |
CU_API Path & | operator/= (char const *buffer) |
adds a MBCS C string to the current path. Adds the separator if needed | |
CU_API Path & | operator/= (wchar_t const *buffer) |
adds a Unicode C string to the current path. Adds the separator if needed | |
CU_API Path & | operator+= (Path const &path) |
Appends a path to the current path. | |
CU_API Path & | operator+= (StringView string) |
adds a string to the current path. | |
CU_API Path & | operator+= (char const *buffer) |
adds a MBCS C string to the current path. | |
CU_API Path & | operator+= (wchar_t const *buffer) |
adds a Unicode C string to the current path. | |
CU_API Path | getPath () const |
Retrieves the parent path. | |
CU_API Path | getFileName (bool withExtension=false) const |
Retrieves the leaf of this path (filename and extension for files). | |
CU_API Path | getFullFileName () const |
Retrieves the full path and leaf. | |
CU_API String | getExtension () const |
Retrieves the extension of the file name, if any. | |
CU_API String | toGeneric () const |
Static Public Attributes | |
static CU_API const xchar | NativeSeparator |
static CU_API const xchar | GenericSeparator |
|
default |
|
default |
|
explicit |
Constructor from a char array.
[in] | data | The char array |
|
explicit |
Constructor from a wchar_t array.
[in] | data | The wchar_t array |
Constructor from a String.
[in] | data | The String |
|
explicit |
Constructor from a String.
[in] | data | The String |
Copy Constructor.
[in] | data | The Path object to copy |
Move Constructor.
[in] | data | The Path object to move |
Retrieves the extension of the file name, if any.
Retrieves the leaf of this path (filename and extension for files).
[in] | withExtension | Tells if we want extension or not, for files. |
Referenced by castor3d::ImporterFile::getName().
Retrieves the full path and leaf.
Referenced by castor::File::getFileName().
Retrieves the parent path.
Referenced by castor::File::getFilePath().
adds a MBCS C string to the current path.
[in] | buffer | The path to add |
Appends a path to the current path.
[in] | path | The path to add |
CU_API Path & castor::Path::operator+= | ( | StringView | string | ) |
adds a string to the current path.
[in] | string | The path to add |
adds a Unicode C string to the current path.
[in] | buffer | The path to add |
adds a MBCS C string to the current path. Adds the separator if needed
[in] | buffer | The path to add |
Appends a path to the current path. adds the separator if needed.
[in] | path | The path to add |
CU_API Path & castor::Path::operator/= | ( | StringView | string | ) |
adds a string to the current path. Adds the separator if needed
[in] | string | The path to add |
adds a Unicode C string to the current path. Adds the separator if needed
[in] | buffer | The path to add |