projects
/
backups
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Just a regular commit
[backups/.git]
/
filedata.hpp
diff --git
a/filedata.hpp
b/filedata.hpp
index 86e5b0ebf3629137ccdf830b8c1f5591b63550bf..123ef86fe42453beb4a980a91b77165b5733c155 100644
(file)
--- a/
filedata.hpp
+++ b/
filedata.hpp
@@
-1,3
+1,6
@@
+#ifndef FILEDATA_H
+#define FILEDATA_H
+
#include <string>
class FileData {
#include <string>
class FileData {
@@
-9,9
+12,14
@@
class FileData {
std::string,
unsigned long,
unsigned long long,
std::string,
unsigned long,
unsigned long long,
- std::string
+ std::string,
+ unsigned long long = 0
);
);
+ char getFileType() const { return filetype; }
+
+ const std::string &getFileName() const { return filename; }
+
private:
FileData();
FileData( const FileData & );
private:
FileData();
FileData( const FileData & );
@@
-26,3
+34,15
@@
class FileData {
unsigned long long last_backup_date;
};
unsigned long long last_backup_date;
};
+
+class FileDataPtrCmp {
+ public:
+
+ bool operator()( const FileData *a, const FileData *b ) {
+ return cmp( a->getFileName(), b->getFileName() );
+ }
+ private:
+ std::less<std::string> cmp;
+};
+
+#endif