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 
13 namespace srchilite {
14 
18 struct FormatterParams: public ParserInfo {
20  std::string fileNameNoPath;
21 
29  int start;
30 
31  FormatterParams() :
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
Stores information about the file name and the line number of a generic element created during parsin...
Definition: parserinfo.h:23
Additional parameters that can be passed to a formatter.
Definition: formatterparams.h:18
int start
The start position of the string to format within the whole string (line).
Definition: formatterparams.h:29
std::string fileNameNoPath
file name without path
Definition: formatterparams.h:20
FormatterParams(const std::string &n)
Definition: formatterparams.h:38