#include <File.hpp>
Inheritance diagram for Ionflux::Tools::File:
Public Member Functions | |
File () | |
Constructor. | |
File (const std::string &initFullName) | |
Constructor. | |
virtual | ~File () |
Destructor. | |
virtual void | refresh () |
Refresh file. | |
virtual bool | isValid () |
Check validity. | |
virtual bool | isDir () |
Get directory status. | |
virtual unsigned int | getSize () |
Get file size. | |
virtual time_t | getAccessTime () |
Get access time. | |
virtual time_t | getModTime () |
Get modification time. | |
virtual time_t | getChangeTime () |
Get change time. | |
virtual void | setName (const std::string &newName) |
Set file name. | |
virtual void | setPath (const std::string &newPath) |
Set file path. | |
virtual void | setFullName (const std::string &newFullName) |
Set full name of file (including path). | |
virtual std::string | getName () const |
Get file name. | |
virtual std::string | getPath () const |
Get file path. | |
virtual std::string | getFullName () const |
Get full name of file (including path). | |
Protected Member Functions | |
virtual bool | updateStatInfo () |
Update stat information. | |
Protected Attributes | |
stat | statInfo |
Information returned by stat. | |
unsigned int | size |
File size. | |
time_t | accessTime |
Time of last access. | |
time_t | modTime |
Time of last modification. | |
time_t | changeTime |
Time of last status change. | |
bool | validity |
Validity flag. | |
std::string | name |
File name. | |
std::string | path |
File path. | |
std::string | fullName |
Full name of file (including path). |
A wrapper for various file properties and operations.
|
Constructor. Construct new File object. |
|
Constructor. Construct new File object.
|
|
Destructor. Destruct File object. |
|
Get access time. Get the time of last access.
|
|
Get change time. Get the time of last status change.
|
|
Get full name of file (including path).
|
|
Get modification time. Get the time of last modification.
|
|
Get file name.
|
|
Get file path.
|
|
Get file size. Get the total size of the file.
|
|
Get directory status. Get the directory status flag for the file.
|
|
Check validity. Check the validity of the file.
|
|
Refresh file. Refresh file status information. |
|
Set full name of file (including path). Set new value of full name of file (including path).
|
|
Set file name. Set new value of file name.
|
|
Set file path. Set new value of file path.
|
|
Update stat information.
Updates the file information obtained from
|
|
Time of last access.
|
|
Time of last status change.
|
|
Full name of file (including path).
|
|
Time of last modification.
|
|
File name.
|
|
File path.
|
|
File size.
|
|
Information returned by stat.
|
|
Validity flag.
|