Source-highlight Library
srchilite::LineBuffer Class Reference

A buffer for a line to be generated. More...

#include <linebuffer.h>

Collaboration diagram for srchilite::LineBuffer:

List of all members.

Public Types

typedef std::set< std::string > PostContents
 Stores contents to be printed after the line.

Public Member Functions

void output (const std::string &s)
 Puts something in the buffer.
void output_post (const std::string &s)
 Stores something to be generated after the line.
const std::string getContents () const
const PostContentsgetPostContents () const
bool empty () const

Private Attributes

ostringstream buffer
 the line contents
PostContents post
 to be generated after the line

Detailed Description

A buffer for a line to be generated.


Member Function Documentation

bool srchilite::LineBuffer::empty ( ) const [inline]
Returns:
whether both the buffer and the post line contens are empty
const std::string srchilite::LineBuffer::getContents ( ) const [inline]
Returns:
the contents of the buffer
Returns:
what to generated after the line

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