Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-30 02:32:40

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 }  // namespace gs
0018 
0019 #endif  // GENERS_CSTRINGBUF_HH_