1 #ifndef DATATOOLS_MEMORY_STREAMBUF_H 3 #define DATATOOLS_MEMORY_STREAMBUF_H 18 :
public std::streambuf
45 :
public std::streambuf
69 :
public std::streambuf
77 typedef std::vector<char>::const_iterator
iterator;
83 size_t increment_ = 1000,
84 size_t max_capacity_ = 0);
88 const std::vector<char>&
buffer()
const;
92 void reset(
size_t capacity_ = 1000,
93 size_t increment_ = 1000,
94 size_t max_capacity_ = 0);
102 void _init(
size_t capacity_);
114 size_t _max_capacity_;
116 std::vector<char> _buffer_;
123 ,
public std::ostream
128 size_t max_capacity_ = 0);
137 #endif // DATATOOLS_MEMORY_STREAMBUF_H
Utility macros for exception handling.