X-Git-Url: http://git.pippins.net/embedvideo/.git/static/git-logo.png?a=blobdiff_plain;f=filedata.hpp;h=8c2951b5221fe0def7443fd9b4bf786ddc1c2e84;hb=d3e898110e4447861a65df171c2afbbb9c199a88;hp=123ef86fe42453beb4a980a91b77165b5733c155;hpb=10f79645bbc320f9b1375e7143079c953f63ab23;p=backups%2F.git diff --git a/filedata.hpp b/filedata.hpp index 123ef86..8c2951b 100644 --- a/filedata.hpp +++ b/filedata.hpp @@ -2,6 +2,7 @@ #define FILEDATA_H #include +#include class FileData { public: @@ -16,9 +17,23 @@ class FileData { unsigned long long = 0 ); - char getFileType() const { return filetype; } + char getFileType() const { return filetype; } + const std::string &getPermissions() const { return permissions; } + const std::string &getUserName() const { return username; } + const std::string &getGroupName() const { return groupname; } + unsigned long getFileSize() const { return filesize; } + unsigned long long getModifiedDate() const { return modified_date; } + const std::string &getFileName() const { return filename; } + unsigned long long getLastBackupDate() const { return last_backup_date; } - const std::string &getFileName() const { return filename; } + void setFileType( char arg ) { filetype = arg; } + void setPermissions( const std::string &arg ) { permissions = arg; } + void setUserName( const std::string &arg ) { username = arg; } + void setGroupName( const std::string &arg ) { groupname = arg; } + void setFileSize( unsigned long arg ) { filesize = arg; } + void setModifiedDate( unsigned long long arg ) { modified_date = arg; } + void setFileName( const std::string &arg ) { filename = arg; } + void setLastBackupDate( unsigned long long arg ) { last_backup_date = arg; } private: FileData(); @@ -45,4 +60,6 @@ class FileDataPtrCmp { std::less cmp; }; +typedef std::set file_set; + #endif