diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-14 07:17:55 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-14 07:17:55 +0000 |
| commit | 1372ac51ade17bc27126449bf29f99c6c2cf7703 (patch) | |
| tree | 974a54b86b20555c8822f651c7b3a53c0a072df3 /src/ByteArrayDiskWriter.cc | |
| parent | 93e5dbed325f29c1bf867a2847d3b839d545cfb2 (diff) | |
2010-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added .cc file for classes/structs that only provided by header
file. Defined non-POD classes' ctor, dtor in .cc file. Moved
implementation code in header file to .cc file for major
classes/strucsts.
Diffstat (limited to 'src/ByteArrayDiskWriter.cc')
| -rw-r--r-- | src/ByteArrayDiskWriter.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/ByteArrayDiskWriter.cc b/src/ByteArrayDiskWriter.cc index b1b1008b..51974003 100644 --- a/src/ByteArrayDiskWriter.cc +++ b/src/ByteArrayDiskWriter.cc @@ -33,7 +33,6 @@ */ /* copyright --> */ #include "ByteArrayDiskWriter.h" -#include "util.h" #include "A2STR.h" namespace aria2 { @@ -90,4 +89,14 @@ uint64_t ByteArrayDiskWriter::size() return buf_.tellg(); } +void ByteArrayDiskWriter::setString(const std::string& s) +{ + buf_.str(s); +} + +std::string ByteArrayDiskWriter::getString() const +{ + return buf_.str(); +} + } // namespace aria2 |
