CARMA C++
carma::sdp::LineBuffer Class Reference

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)
 
LineBufferoperator<< (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...
 

Detailed Description

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.

Constructor & Destructor Documentation

carma::sdp::LineBuffer::LineBuffer ( const std::string &  filename,
std::ios_base::openmode  mode = std::ios_base::out|std::ios_base::app 
)

Constructor.

Parameters
filename- Name of file to read from or write to.
mode- How to open file.
carma::sdp::LineBuffer::~LineBuffer ( )

Destructor.

Member Function Documentation

void carma::sdp::LineBuffer::flush ( bool  addnewline = true)

flush buffer

Parameters
addnewlineWhether 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)

of field separators to be written after a newline.

Definition at line 58 of file LineBuffer.h.


The documentation for this class was generated from the following file: