20 #ifndef _LOCATIONINFO_HPP
21 #define _LOCATIONINFO_HPP
24 #include <xqilla/framework/XQillaExport.hpp>
26 #include <xercesc/util/XercesDefs.hpp>
34 : file_(0), line_(0), column_(0) {}
36 LocationInfo(
const XMLCh *file,
unsigned int line,
unsigned int column)
37 : file_(file), line_(line), column_(column) {}
40 const XMLCh *
getFile()
const {
return file_; }
42 unsigned int getLine()
const {
return line_; }
65 unsigned int line_, column_;
void setLocationInfo(const XMLCh *file, unsigned int line, unsigned int column)
Sets the location to the given information.
Definition: LocationInfo.hpp:47
unsigned int getLine() const
The line in the query.
Definition: LocationInfo.hpp:42
void setLocationInfo(const LocationInfo *o)
Sets the location with the information in the given LocationInfo object.
Definition: LocationInfo.hpp:54
unsigned int getColumn() const
The column in the query.
Definition: LocationInfo.hpp:44
LocationInfo()
Constructor that sets the information to 0.
Definition: LocationInfo.hpp:33
A class that gives records a location in the query.
Definition: LocationInfo.hpp:29
const XMLCh * getFile() const
The file that the query was parsed from.
Definition: LocationInfo.hpp:40
LocationInfo(const XMLCh *file, unsigned int line, unsigned int column)
Constructor that takes the initial information.
Definition: LocationInfo.hpp:36