Source-highlight Library
Main Page
Namespaces
Classes
Files
File List
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_*/
srchilite::Formatter
The base abstract class for formatting strings.
Definition:
formatter.h:25
srchilite::Formatter::format
virtual void format(const std::string &s, const FormatterParams *params=0)=0
Formats the passed string.
srchilite
C++ class: doctemplate.h.
Definition:
bufferedoutput.cpp:13
srchilite::FormatterParams
Additional parameters that can be passed to a formatter.
Definition:
formatterparams.h:18
srchilite::FormatterPtr
boost::shared_ptr< Formatter > FormatterPtr
shared pointer for Formatter
Definition:
formatter.h:41
lib
srchilite
formatter.h
Generated on Mon Mar 30 2015 20:44:15 for Source-highlight Library by
1.8.8