 |
ewmscp
..
|
Go to the documentation of this file. 1 #ifndef __genericStat_h_
2 #define __genericStat_h_
25 genericStat(
const struct stat& statBuf,
const clock_type::duration& aTimeResolution);
26 genericStat(
const struct stat64& statBuf,
const clock_type::duration& aTimeResolution);
29 static void chronoToTimespec(
struct timespec& spec,
const clock_type::time_point& Chrono);
30 static void chronoToTimeval(
struct timeval& spec,
const clock_type::time_point& Chrono);
31 static void chronoToString(std::string& str,
const clock_type::time_point& Chrono);
33 void getAtime(
struct timespec& spec)
const;
34 void getMtime(
struct timespec& spec)
const;
35 void getAtime(
struct timeval& spec)
const;
36 void getMtime(
struct timeval& spec)
const;
37 void getAtime(std::string& spec)
const;
38 void getMtime(std::string& spec)
const;
39 clock_type::time_point
getMtime()
const;
void getAtime(struct timespec &spec) const
std::chrono::system_clock clock_type
generic stat abstraction class Used to abstract the variants of the stat structure.
clock_type::time_point mTime
bool isRegularFile() const
bool isSameMtimeAs(const genericStat &that) const
clock_type::time_point aTime
static void chronoToTimeval(struct timeval &spec, const clock_type::time_point &Chrono)
clock_type::time_point getMtime() const
clock_type::duration timeResolution
bool isNewerThan(const genericStat &that) const
std::ostream & operator<<(std::ostream &stream, const genericStat &aStat)
static void chronoToString(std::string &str, const clock_type::time_point &Chrono)
static void chronoToTimespec(struct timespec &spec, const clock_type::time_point &Chrono)