File indexing completed on 2024-04-06 11:56:18
0001 #ifndef GENERS_CSTRINGBUF_HH_
0002 #define GENERS_CSTRINGBUF_HH_
0003
0004 #include <sstream>
0005
0006 namespace gs {
0007 class CStringBuf : public std::stringbuf {
0008 public:
0009 explicit CStringBuf(std::ios_base::openmode mode = std::ios_base::in | std::ios_base::out) : std::stringbuf(mode) {}
0010
0011 const char *getGetBuffer(unsigned long long *len) const;
0012 const char *getPutBuffer(unsigned long long *len) const;
0013
0014 CStringBuf(const CStringBuf &) = delete;
0015 CStringBuf &operator=(const CStringBuf &) = delete;
0016 };
0017 }
0018
0019 #endif