diff options
author | vng <viktor.govako@gmail.com> | 2011-04-30 07:42:08 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:16:43 +0300 |
commit | 7b81beed3756b0dd7fc1d299c695e8f135cb36ca (patch) | |
tree | c85c3816896143f8ec5bf6a576380af6eaa65cc1 /coding/file_container.hpp | |
parent | 4f70d8a2d2fd0fdb97204ba498a18a6ab161d193 (diff) |
Add GetExistingWriter to FilesContainerW. Need for re-writing any file in files container (sizes should be equal).
Diffstat (limited to 'coding/file_container.hpp')
-rw-r--r-- | coding/file_container.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/coding/file_container.hpp b/coding/file_container.hpp index e013c5da57..63408b9972 100644 --- a/coding/file_container.hpp +++ b/coding/file_container.hpp @@ -71,8 +71,17 @@ public: FileWriter GetWriter(Tag const & tag); + /// @todo Subclass from FileWriter to check write bounds (avoid overrun). + /// Return this object with additional check. + /// @precondition Container should be constructed with OP_WRITE_EXISTING. + FileWriter GetExistingWriter(Tag const & tag); + + /// @name Append to existing container. + /// @precondition Container should be constructed with OP_APPEND. + //@{ void Append(string const & fName, Tag const & tag); void Append(vector<char> const & buffer, Tag const & tag); + //@} void Finish(); |