Source-highlight Library
formatter.h
1//
2// Author: Lorenzo Bettini <http://www.lorenzobettini.it>, (C) 2004-2008
3//
4// Copyright: See COPYING file that comes with this distribution
5//
6
7#ifndef FORMATTER_H_
8#define FORMATTER_H_
9
10#include <string>
11
12#include <boost/shared_ptr.hpp>
13
14namespace srchilite {
15
16struct FormatterParams;
17
26{
27public:
28 Formatter();
29 virtual ~Formatter();
30
37 virtual void format(const std::string &s, const FormatterParams *params = 0) = 0;
38};
39
41typedef boost::shared_ptr<Formatter> FormatterPtr;
42
43}
44
45#endif /*FORMATTER_H_*/
The base abstract class for formatting strings.
Definition: formatter.h:26
virtual void format(const std::string &s, const FormatterParams *params=0)=0
Formats the passed string.
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
boost::shared_ptr< Formatter > FormatterPtr
shared pointer for Formatter
Definition: formatter.h:41
Additional parameters that can be passed to a formatter.
Definition: formatterparams.h:18