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 
14 namespace srchilite {
15 
16 struct FormatterParams;
17 
25 class Formatter
26 {
27 public:
28  Formatter();
29  virtual ~Formatter();
30 
37  virtual void format(const std::string &s, const FormatterParams *params = 0) = 0;
38 };
39 
41 typedef boost::shared_ptr<Formatter> FormatterPtr;
42 
43 }
44 
45 #endif /*FORMATTER_H_*/
The base abstract class for formatting strings.
Definition: formatter.h:25
virtual void format(const std::string &s, const FormatterParams *params=0)=0
Formats the passed string.
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
Additional parameters that can be passed to a formatter.
Definition: formatterparams.h:18
boost::shared_ptr< Formatter > FormatterPtr
shared pointer for Formatter
Definition: formatter.h:41