CARMA C++
|
A line buffer class for use in XML output of astro hdr data elements. More...
#include <carma/sdp/LineBuffer.h>
Public Member Functions | |
void | flush (bool addnewline=true) |
flush buffer More... | |
LineBuffer (const std::string &filename, std::ios_base::openmode mode=std::ios_base::out|std::ios_base::app) | |
Constructor. More... | |
LineBuffer (std::streambuf *sb) | |
LineBuffer & | operator<< (const std::string &) |
Write string data to a line buffer. More... | |
void | setLineIndent (unsigned int indent) |
of field separators to be written after a newline.More... | |
~LineBuffer () | |
Destructor. More... | |
A line buffer class for use in XML output of astro hdr data elements.
This class is used by the astronomical header writer and aids in the formatting of the XML ASCII output.
Definition at line 33 of file LineBuffer.h.
carma::sdp::LineBuffer::LineBuffer | ( | const std::string & | filename, |
std::ios_base::openmode | mode = std::ios_base::out|std::ios_base::app |
||
) |
Constructor.
filename | - Name of file to read from or write to. |
mode | - How to open file. |
carma::sdp::LineBuffer::~LineBuffer | ( | ) |
Destructor.
void carma::sdp::LineBuffer::flush | ( | bool | addnewline = true | ) |
flush buffer
addnewline | Whether to append a newline. |
LineBuffer& carma::sdp::LineBuffer::operator<< | ( | const std::string & | ) |
Write string data to a line buffer.
void carma::sdp::LineBuffer::setLineIndent | ( | unsigned int | indent | ) |
Definition at line 58 of file LineBuffer.h.