Provides cross-platform file path calculation for a file names or paths. More...
#include <pge_file_lib_globs.h>
Public Member Functions | |
| FileInfo () | |
| Constructor. | |
| FileInfo (PGESTRING filepath) | |
| Constructor with pre-opening of a file. More... | |
| void | setFile (PGESTRING filepath) |
| Sets file which will be used to calculate file information. More... | |
| PGESTRING | suffix () |
| Returns file extension (last part of filename after last dot) More... | |
| PGESTRING | filename () |
| Returns full filename without path. More... | |
| PGESTRING | fullPath () |
| Returns absolute path to file. More... | |
| PGESTRING | basename () |
| Returns base name part (first part of file name before first dot) More... | |
| PGESTRING | dirpath () |
| Returns full directory path where actual file is located. More... | |
Provides cross-platform file path calculation for a file names or paths.
| PGE_FileFormats_misc::FileInfo::FileInfo | ( | PGESTRING | filepath | ) |
Constructor with pre-opening of a file.
| filepath | relative or absolute file path |
| PGESTRING PGE_FileFormats_misc::FileInfo::basename | ( | ) |
Returns base name part (first part of file name before first dot)
| PGESTRING PGE_FileFormats_misc::FileInfo::dirpath | ( | ) |
Returns full directory path where actual file is located.
| PGESTRING PGE_FileFormats_misc::FileInfo::filename | ( | ) |
Returns full filename without path.
| PGESTRING PGE_FileFormats_misc::FileInfo::fullPath | ( | ) |
Returns absolute path to file.
| void PGE_FileFormats_misc::FileInfo::setFile | ( | PGESTRING | filepath | ) |
Sets file which will be used to calculate file information.
| filepath |
| PGESTRING PGE_FileFormats_misc::FileInfo::suffix | ( | ) |
Returns file extension (last part of filename after last dot)
1.8.7