diff options
author | Yury Melnichek <melnichek@gmail.com> | 2011-01-04 18:26:24 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:09:11 +0300 |
commit | f2871f3fd2b16fcce0525e0fb4e9af013f60916f (patch) | |
tree | cb33823387dc1f54ed5c077bc4691a4dc2578cd0 /coding/file_container.hpp | |
parent | 507694e4c1c9c7f2aa01209ee5d3053ce2e0ae9d (diff) |
Names and formatting change in file_container.hpp
Diffstat (limited to 'coding/file_container.hpp')
-rw-r--r-- | coding/file_container.hpp | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/coding/file_container.hpp b/coding/file_container.hpp index 9b94464095..e013c5da57 100644 --- a/coding/file_container.hpp +++ b/coding/file_container.hpp @@ -21,7 +21,7 @@ protected: Info(Tag const & tag, uint64_t offset) : m_tag(tag), m_offset(offset) {} }; - struct less_info + struct LessInfo { bool operator() (Info const & t1, Info const & t2) const { @@ -37,18 +37,14 @@ protected: } }; - typedef vector<Info> info_cont_t; - info_cont_t m_info; + typedef vector<Info> InfoContainer; + InfoContainer m_info; void ReadInfo(FileReader & reader); }; class FilesContainerR : public FilesContainerBase { - typedef FilesContainerBase base_type; - - FileReader m_source; - public: explicit FilesContainerR(string const & fName, uint32_t logPageSize = 10, @@ -61,19 +57,13 @@ public: for (size_t i = 0; i < m_info.size(); ++i) f(m_info[i].m_tag); } + +private: + FileReader m_source; }; class FilesContainerW : public FilesContainerBase { - typedef FilesContainerBase base_type; - - string m_name; - - uint64_t SaveCurrentSize(); - - bool m_needRewrite; - bool m_bFinished; - public: FilesContainerW(string const & fName, FileWriter::Op op = FileWriter::OP_WRITE_TRUNCATE); @@ -85,4 +75,11 @@ public: void Append(vector<char> const & buffer, Tag const & tag); void Finish(); + +private: + uint64_t SaveCurrentSize(); + + string m_name; + bool m_bNeedRewrite; + bool m_bFinished; }; |