Class representing basic file having name and timestamp of last modification.
More...
#include <file.hpp>
Class representing basic file having name and timestamp of last modification.
!
| file::file |
( |
std::string && |
name, |
|
|
time_t |
t = 0 |
|
) |
| |
|
inline |
Constructor initalizing m_name and m_time with proper values.
- Parameters
-
| name | Name of the file. |
| t | if non zero, overrides real (system) last modification time. |
| bool file::exists_on_disk |
( |
| ) |
const |
|
inline |
Checks whether file really exists on disk.
- Returns
- true if file exists, false otherwise.
| const std::string& file::get_name |
( |
| ) |
const |
|
inline |
Gets name of the file.
- Returns
- const reference to file name.
| time_t file::get_time |
( |
| ) |
const |
|
inline |
Gets time of last modification.
- Returns
- time of last modification.
| bool file::is_recent |
( |
const file & |
f | ) |
const |
|
inline |
Checks, whether this file is more recent than argument.
- Parameters
-
- Returns
- true if this file is more recent than f, false otherwise.
| bool operator!= |
( |
const file & |
t1, |
|
|
const file & |
t2 |
|
) |
| |
|
friend |
| bool operator< |
( |
const file & |
t1, |
|
|
const file & |
t2 |
|
) |
| |
|
friend |
| bool operator== |
( |
const file & |
t1, |
|
|
const file & |
t2 |
|
) |
| |
|
friend |
| bool operator> |
( |
const file & |
t1, |
|
|
const file & |
t2 |
|
) |
| |
|
friend |
The documentation for this class was generated from the following file: