Source-highlight Library
srchilite::LineBuffer Class Reference

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

#include <linebuffer.h>

Collaboration diagram for srchilite::LineBuffer:

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

◆ empty()

bool srchilite::LineBuffer::empty ( ) const
inline
Returns
whether both the buffer and the post line contens are empty

◆ getContents()

const std::string srchilite::LineBuffer::getContents ( ) const
inline
Returns
the contents of the buffer

◆ getPostContents()

const PostContents & srchilite::LineBuffer::getPostContents ( ) const
inline
Returns
what to generated after the line

The documentation for this class was generated from the following file:
  • /cygdrive/d/a/scallywag/source-highlight/source-highlight-3.1.9-1.x86_64/src/source-highlight-3.1.9/lib/srchilite/linebuffer.h