PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
PGE_FileFormats_misc::FileInfo Class Reference

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...
 

Detailed Description

Provides cross-platform file path calculation for a file names or paths.

Constructor & Destructor Documentation

PGE_FileFormats_misc::FileInfo::FileInfo ( PGESTRING  filepath)

Constructor with pre-opening of a file.

Parameters
filepathrelative or absolute file path

Member Function Documentation

PGESTRING PGE_FileFormats_misc::FileInfo::basename ( )

Returns base name part (first part of file name before first dot)

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.

Returns
full directory path where actual file is located
PGESTRING PGE_FileFormats_misc::FileInfo::filename ( )

Returns full filename without path.

Returns
full filename without path
PGESTRING PGE_FileFormats_misc::FileInfo::fullPath ( )

Returns absolute path to file.

Returns
absolute path to file
void PGE_FileFormats_misc::FileInfo::setFile ( PGESTRING  filepath)

Sets file which will be used to calculate file information.

Parameters
filepath
PGESTRING PGE_FileFormats_misc::FileInfo::suffix ( )

Returns file extension (last part of filename after last dot)

Returns
file suffix or name extension (last part of filename after last dot)

The documentation for this class was generated from the following files: