Source-highlight Library
Public Types | Public Member Functions | Private Attributes | List of all members
srchilite::LineBuffer Class Reference

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

#include <linebuffer.h>

Collaboration diagram for srchilite::LineBuffer:
Collaboration graph
[legend]

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
 
  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
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:
  • /home/bettini/work/source-highlight/src-highlite/lib/srchilite/linebuffer.h

AltStyle によって変換されたページ (->オリジナル) /