alaCarte Maps
Renderer for OpenStreetMap tiles
parse_info.hpp
Go to the documentation of this file.
1 
21 #pragma once
22 #ifndef _PARSE_INFO_HPP
23 #define _PARSE_INFO_HPP
24 
25 
26 #include "settings.hpp"
27 
28 
29 
30 struct ParseInfo
31 {
32  inline ParseInfo()
33  : column(0)
34  , line(0)
35  {
36 
37  }
38 
39  inline ParseInfo(const string& sourcefile, unsigned int column, unsigned int line, const string& linecontent)
40  : sourcefile(sourcefile)
41  , column(column)
42  , line(line)
43  , linecontent(linecontent)
44  {
45 
46  }
47 
48  inline const string& getSourceFile() const { return sourcefile; }
49  inline const unsigned int& getColumn() const { return column; }
50  inline const unsigned int& getLine() const { return line; }
51  inline const string& getLineContent() const { return linecontent; }
52 
53 
54 private:
55  string sourcefile;
56  unsigned int column;
57  unsigned int line;
58  string linecontent;
59 };
60 
61 
62 
63 #endif
unsigned int column
Definition: parse_info.hpp:56
unsigned int line
Definition: parse_info.hpp:57
string sourcefile
Definition: parse_info.hpp:55
const unsigned int & getLine() const
Definition: parse_info.hpp:50
string linecontent
Definition: parse_info.hpp:58
const unsigned int & getColumn() const
Definition: parse_info.hpp:49
const string & getSourceFile() const
Definition: parse_info.hpp:48
ParseInfo(const string &sourcefile, unsigned int column, unsigned int line, const string &linecontent)
Definition: parse_info.hpp:39
const string & getLineContent() const
Definition: parse_info.hpp:51