Source-highlight Library
Main Page
Namespaces
Classes
Files
File List
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_*/
srchilite::ParserInfo
Stores information about the file name and the line number of a generic element created during parsin...
Definition:
parserinfo.h:23
srchilite::FormatterParams
Additional parameters that can be passed to a formatter.
Definition:
formatterparams.h:18
srchilite::FormatterParams::start
int start
The start position of the string to format within the whole string (line).
Definition:
formatterparams.h:29
srchilite::FormatterParams::fileNameNoPath
std::string fileNameNoPath
file name without path
Definition:
formatterparams.h:20
srchilite::FormatterParams::FormatterParams
FormatterParams(const std::string &n)
Definition:
formatterparams.h:38
formatterparams.h
Generated on Fri May 15 2015 06:45:48 for Source-highlight Library by
1.8.6