From 1372ac51ade17bc27126449bf29f99c6c2cf7703 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 14 Nov 2010 07:17:55 +0000 Subject: 2010-11-14 Tatsuhiro Tsujikawa 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. --- src/ByteArrayDiskWriter.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src/ByteArrayDiskWriter.h') diff --git a/src/ByteArrayDiskWriter.h b/src/ByteArrayDiskWriter.h index e049a06e..cba19b08 100644 --- a/src/ByteArrayDiskWriter.h +++ b/src/ByteArrayDiskWriter.h @@ -66,15 +66,9 @@ public: virtual void disableDirectIO() {} - void setString(const std::string& s) - { - buf_.str(s); - } - - std::string getString() const - { - return buf_.str(); - } + void setString(const std::string& s); + + std::string getString() const; }; typedef SharedHandle ByteArrayDiskWriterHandle; -- cgit