diff options
author | Chris Wilson <chris+github@qwirx.com> | 2015-07-19 19:50:02 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2015-07-19 19:50:02 +0000 |
commit | 05c7920fc94bbd9ef719fb7699281ee3bf09de45 (patch) | |
tree | 0bbc2905b6bf2f96dc27cc322ea88189dca49a70 /lib/common | |
parent | 416dc5f283579cb74f86ef7b7a6233c24a705db0 (diff) |
Refactor BackupStoreInfo to allow loading from any IOStream.
Diffstat (limited to 'lib/common')
-rw-r--r-- | lib/common/FileStream.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/common/FileStream.h b/lib/common/FileStream.h index f528b8bc..1426d8a2 100644 --- a/lib/common/FileStream.h +++ b/lib/common/FileStream.h @@ -23,7 +23,7 @@ class FileStream : public IOStream { public: - FileStream(const std::string& rFilename, + FileStream(const std::string& rFilename, int flags = (O_RDONLY | O_BINARY), int mode = (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)); @@ -54,6 +54,7 @@ public: { return std::string("local file ") + mFileName; } + const std::string GetFileName() const { return mFileName; } private: tOSFileHandle mOSFileHandle; |