Source-highlight Library
Main Page
Namespaces
Classes
Files
File List
parserinfo.h
1
//
2
// C++ Interface: parserinfo
3
//
4
// Description:
5
//
6
//
7
// Author: Lorenzo Bettini <http://www.lorenzobettini.it>, (C) 2005-2008
8
//
9
// Copyright: See COPYING file that comes with this distribution
10
//
11
//
12
#ifndef PARSERINFO_H
13
#define PARSERINFO_H
14
15
#include <string>
16
17
namespace
srchilite
{
18
23
struct
ParserInfo
{
24
std::string filename;
// including path
25
unsigned
int
line;
26
27
ParserInfo
() :
28
line(0) {
29
}
30
ParserInfo
(
const
std::string &n) :
31
filename(n), line(0) {
32
}
33
34
void
setParserInfo(
const
std::string &name,
unsigned
int
l) {
35
filename = name;
36
line = l;
37
}
38
39
void
setParserInfo(
const
ParserInfo
*p) {
40
filename = p->filename;
41
line = p->line;
42
}
43
};
44
45
}
46
47
#endif
srchilite
C++ class: doctemplate.h.
Definition:
bufferedoutput.cpp:13
srchilite::ParserInfo
Stores information about the file name and the line number of a generic element created during parsin...
Definition:
parserinfo.h:23
lib
srchilite
parserinfo.h
Generated on Mon Mar 30 2015 20:44:16 for Source-highlight Library by
1.8.8