Represents a file or directory path. More...
#include <lt_fileSpec.h>
Public Types | |
| enum | { fSlash = '/', bSlash = '\\', platformSlash = '/' } |
| enum | EncodingType { NATIVE, UTF8 } |
native constructor More... | |
Public Member Functions | |
| LTFileSpec (void) | |
| default constructor | |
| ~LTFileSpec (void) | |
| destructor | |
| LTFileSpec (const char *p1, EncodingType encoding=NATIVE) | |
| LTFileSpec (const char *p1, const char *p2, EncodingType encoding=NATIVE) | |
| LTFileSpec (const char *p1, const char *p2, const char *p3, EncodingType encoding=NATIVE) | |
| LTFileSpec (const wchar_t *p1) | |
| wchar constructor | |
| LTFileSpec (const wchar_t *p1, const wchar_t *p2) | |
| LTFileSpec (const wchar_t *p1, const wchar_t *p2, const wchar_t *p3) | |
| LTFileSpec (const lt_uint16 *path) | |
| UTF16 constructor. | |
| LTFileSpec (const lt_uint16 *p1, const lt_uint16 *p2) | |
| LTFileSpec (const lt_uint16 *p1, const lt_uint16 *p2, const lt_uint16 *p3) | |
| LTFileSpec (const LTFileSpec &p1) | |
| LTFileSpec (const LTFileSpec &p1, const LTFileSpec &p2) | |
| LTFileSpec (const LTFileSpec &p1, const LTFileSpec &p2, const LTFileSpec &p3) | |
| LTFileSpec (const LTFileSpec &p1, const char *p2, EncodingType encoding) | |
| LTFileSpec (const LTFileSpec &p1, const char *p2, const char *p3, EncodingType encoding) | |
| LTFileSpec (const LTFileSpec &p1, const LTFileSpec &p2, const char *p3, EncodingType encoding) | |
| LTFileSpec (const LTFileSpec &p1, const wchar_t *p2) | |
| LTFileSpec (const LTFileSpec &p1, const wchar_t *p2, const wchar_t *p3) | |
| LTFileSpec (const LTFileSpec &p1, const LTFileSpec &p2, const wchar_t *p3) | |
| LTFileSpec (const LTFileSpec &p1, const lt_uint16 *p2) | |
| LTFileSpec (const LTFileSpec &p1, const lt_uint16 *p2, const lt_uint16 *p3) | |
| LTFileSpec (const LTFileSpec &p1, const LTFileSpec &p2, const lt_uint16 *p3) | |
| LTFileSpec & | operator= (const LTFileSpec &that) |
| assignment operator | |
| bool | operator!= (const LTFileSpec &fs) const |
| inequality operator | |
| bool | operator== (const LTFileSpec &fs) const |
| equality operator | |
| bool | empty (void) const |
| const char * | utf8 (void) const |
| Function to convert the path to a UTF8 format. | |
| const char * | n_str (void) const |
| Function to convert the path to native format. | |
| const wchar_t * | w_str (void) const |
| Function to convert the path to Wide format. | |
| LTFileSpec | dirname (void) const |
| Return the parent directory. | |
| const char * | basename (void) const |
| Return the base filename. | |
| const char * | getSuffix () const |
| returns suffix (in utf8) | |
| LTFileSpec | replaceSuffix (const char *ext) const |
| replaces suffix (extension) | |
| LTFileSpec | removeSuffix () const |
| remove the suffix (extension) | |
| bool | absolute () const |
| returns true if path is absolute, false if relative | |
Protected Member Functions | |
| void | init (const char *p1, const char *p2, const char *p3) |
| Initialization from UTF8 strings. | |
| size_t | getPrefixLength (void) const |
DecodeJP2ToBBB.cpp, DecodeJP2ToJPG.cpp, DecodeJP2ToMemory.cpp, DecodeMrSIDBandSelection.cpp, DecodeMrSIDToMemory.cpp, DecodeMrSIDToRaw.cpp, DecodeMrSIDToTIFF.cpp, DerivedImageFilter.cpp, DerivedImageReader.cpp, DerivedImageWriter.cpp, ErrorHandling.cpp, GeoScene.cpp, ImageInfo.cpp, InterruptDelegate.cpp, MetadataDump.cpp, ProgressDelegate.cpp, and SceneBuffer.cpp.
Definition at line 39 of file lt_fileSpec.h.
| anonymous enum |
Definition at line 42 of file lt_fileSpec.h.
| path | first part of the path could be directory or filename |
Definition at line 74 of file lt_fileSpec.h.
| LTFileSpec::LTFileSpec | ( | void | ) |
| LTFileSpec::~LTFileSpec | ( | void | ) |
| LTFileSpec::LTFileSpec | ( | const char * | p1, | |
| EncodingType | encoding = NATIVE | |||
| ) |
| LTFileSpec::LTFileSpec | ( | const char * | p1, | |
| const char * | p2, | |||
| EncodingType | encoding = NATIVE | |||
| ) |
| LTFileSpec::LTFileSpec | ( | const char * | p1, | |
| const char * | p2, | |||
| const char * | p3, | |||
| EncodingType | encoding = NATIVE | |||
| ) |
| LTFileSpec::LTFileSpec | ( | const wchar_t * | p1 | ) | [explicit] |
| LTFileSpec::LTFileSpec | ( | const wchar_t * | p1, | |
| const wchar_t * | p2 | |||
| ) |
| LTFileSpec::LTFileSpec | ( | const wchar_t * | p1, | |
| const wchar_t * | p2, | |||
| const wchar_t * | p3 | |||
| ) |
| LTFileSpec::LTFileSpec | ( | const lt_uint16 * | path | ) | [explicit] |
| LTFileSpec::LTFileSpec | ( | const LTFileSpec & | p1 | ) |
| LTFileSpec::LTFileSpec | ( | const LTFileSpec & | p1, | |
| const LTFileSpec & | p2 | |||
| ) |
| LTFileSpec::LTFileSpec | ( | const LTFileSpec & | p1, | |
| const LTFileSpec & | p2, | |||
| const LTFileSpec & | p3 | |||
| ) |
| LTFileSpec::LTFileSpec | ( | const LTFileSpec & | p1, | |
| const char * | p2, | |||
| EncodingType | encoding | |||
| ) |
| LTFileSpec::LTFileSpec | ( | const LTFileSpec & | p1, | |
| const char * | p2, | |||
| const char * | p3, | |||
| EncodingType | encoding | |||
| ) |
| LTFileSpec::LTFileSpec | ( | const LTFileSpec & | p1, | |
| const LTFileSpec & | p2, | |||
| const char * | p3, | |||
| EncodingType | encoding | |||
| ) |
| LTFileSpec::LTFileSpec | ( | const LTFileSpec & | p1, | |
| const wchar_t * | p2 | |||
| ) |
| LTFileSpec::LTFileSpec | ( | const LTFileSpec & | p1, | |
| const wchar_t * | p2, | |||
| const wchar_t * | p3 | |||
| ) |
| LTFileSpec::LTFileSpec | ( | const LTFileSpec & | p1, | |
| const LTFileSpec & | p2, | |||
| const wchar_t * | p3 | |||
| ) |
| LTFileSpec::LTFileSpec | ( | const LTFileSpec & | p1, | |
| const lt_uint16 * | p2 | |||
| ) |
| LTFileSpec::LTFileSpec | ( | const LTFileSpec & | p1, | |
| const lt_uint16 * | p2, | |||
| const lt_uint16 * | p3 | |||
| ) |
| LTFileSpec::LTFileSpec | ( | const LTFileSpec & | p1, | |
| const LTFileSpec & | p2, | |||
| const lt_uint16 * | p3 | |||
| ) |
| bool LTFileSpec::absolute | ( | ) | const |
| const char* LTFileSpec::basename | ( | void | ) | const |
The semantics are similar to the standard Unix basename.
Examples:
| LTFileSpec LTFileSpec::dirname | ( | void | ) | const |
The semantics are similar to the standard Unix dirname.
Examples:
| bool LTFileSpec::empty | ( | void | ) | const |
| size_t LTFileSpec::getPrefixLength | ( | void | ) | const [protected] |
| const char* LTFileSpec::getSuffix | ( | ) | const |
Examples:
| void LTFileSpec::init | ( | const char * | p1, | |
| const char * | p2, | |||
| const char * | p3 | |||
| ) | [protected] |
| const char* LTFileSpec::n_str | ( | void | ) | const |
| bool LTFileSpec::operator!= | ( | const LTFileSpec & | fs | ) | const |
| LTFileSpec& LTFileSpec::operator= | ( | const LTFileSpec & | that | ) |
| bool LTFileSpec::operator== | ( | const LTFileSpec & | fs | ) | const |
| LTFileSpec LTFileSpec::removeSuffix | ( | ) | const |
Note this also removes the ".".
Examples:
| LTFileSpec LTFileSpec::replaceSuffix | ( | const char * | ext | ) | const |
Note that ext should not include the ".". If ext is null, the suffix is removed.
Examples:
| const char* LTFileSpec::utf8 | ( | void | ) | const |
| const wchar_t* LTFileSpec::w_str | ( | void | ) | const |
| LizardTech |