14 #ifndef CARMA_SDP_LINEBUFFER_H
15 #define CARMA_SDP_LINEBUFFER_H
17 #include <boost/shared_ptr.hpp>
42 LineBuffer(
const std::string &filename, std::ios_base::openmode mode = std::ios_base::out | std::ios_base::app);
66 void flush(
bool addnewline=
true);
70 void checkForFull(
int extra=0);
73 boost::shared_ptr<std::iostream> stream_;
74 std::ostringstream linebuf_;
LineBuffer & operator<<(const std::string &)
Write string data to a line buffer.
void flush(bool addnewline=true)
flush buffer
LineBuffer(const std::string &filename, std::ios_base::openmode mode=std::ios_base::out|std::ios_base::app)
Constructor.
void setLineIndent(unsigned int indent)
of field separators to be written after a newline.
A line buffer class for use in XML output of astro hdr data elements.