Source-highlight Library
formatterparams.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 FORMATTERPARAMS_H_
8#define FORMATTERPARAMS_H_
9
10#include "parserinfo.h"
11#include "fileutil.h"
12
13namespace srchilite {
14
20 std::string fileNameNoPath;
21
29 int start;
30
32 start(-1) {
33 }
34
38 FormatterParams(const std::string &n) :
39 ParserInfo(n), fileNameNoPath(strip_file_path(n)), start(-1) {
40 }
41};
42
43}
44
45#endif /*FORMATTERPARAMS_H_*/
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
Additional parameters that can be passed to a formatter.
Definition: formatterparams.h:18
std::string fileNameNoPath
file name without path
Definition: formatterparams.h:20
int start
The start position of the string to format within the whole string (line).
Definition: formatterparams.h:29
FormatterParams(const std::string &n)
Definition: formatterparams.h:38
Stores information about the file name and the line number of a generic element created during parsin...
Definition: parserinfo.h:23