#include <SLFile.hpp>
Inheritance diagram for SLFile:
Public Member Functions | |
SLFile (const char *path) | |
SLFile (const char *directory, const char *file) | |
const SLString & | getShortName () const |
const SLFileExt & | getExt () const |
const char * | getOSDependantPath () const |
const char * | getOSDependantName () const |
const char * | getOSDependantParent () const |
Timestamp | getTimestamp () const throw (SLFile::IOException) |
bool | hasExt (const SLFileExt &ext) const |
Protected Attributes | |
boost::shared_ptr< Data > | _shared_ptr |
SLFile uses shared_ptr, see the Library section for details.
|
The file is constructed from its path. The path string is the OS dependant value, not UTF8.
|
|
The file is constructed from its path and its name separately
|
|
Returns the Extention of this file. |
|
Return the file name without path. |
|
Gets the parent directory of this file. example : |
|
Return the full path in the OS dependant encoding. |
|
Gets the name of the file without the whole path. This method is intended to be usefull for the GUI listings.
|
|
Gets the date of last modification. This value is always up to date (no caching).
|
|
Return true if the file has the extention specified. |
|
Used to store data. |