Source-highlight Library
Public Member Functions | List of all members
srchilite::Formatter Class Referenceabstract

The base abstract class for formatting strings. More...

#include <formatter.h>

Inheritance diagram for srchilite::Formatter:
Inheritance graph
[legend]

Public Member Functions

virtual void  format (const std::string &s, const FormatterParams *params=0)=0
  Formats the passed string. More...
 

Detailed Description

The base abstract class for formatting strings.

Derived classes must implement the abstract method notify. Note that only the string to format is passed (and some additional information in a FormatterParams object); everything else (e.g., what kind of elements this formatter handles) must be part of the Formatter itself (i.e., of the subclass).

Member Function Documentation

virtual void srchilite::Formatter::format ( const std::string &  s,
const FormatterParamsparams = 0 
)
pure virtual

Formats the passed string.

Parameters
the string to format
params possible additional parameters for the formatter

Implemented in srchilite::TextStyleFormatter.


The documentation for this class was generated from the following files:
  • /home/bettini/work/source-highlight/src-highlite/lib/srchilite/formatter.h
  • /home/bettini/work/source-highlight/src-highlite/lib/srchilite/formatter.cpp

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