-
Notifications
You must be signed in to change notification settings - Fork 0
/
file.h
44 lines (33 loc) · 787 Bytes
/
file.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef FILE_H
#define FILE_H
#include "boost/filesystem/path.hpp"
// needed to get sorting working
// only solutions I can find was using struc
// and not a class
struct File
{
boost::filesystem::path path;
time_t last_modified_state;
};
// this struc holds a method that describes the sorting method
struct FileCMP
{
bool operator()( const File& f1, const File& f2 ) const
{
return f1.last_modified_state < f2.last_modified_state;
}
};
/*
class File
{
public:
boost::filesystem::path getPath();
void setPath(boost::filesystem::path path);
time_t getModifiedTime();
void setModifiedTime(time_t time);
private:
boost::filesystem::path path;
time_t last_modified_state;
};
*/
#endif // FILE_H