location of XML Node including XML file name More...
#include <xmlstorage.h>
Public Member Functions | |
XMLLocation () | |
XMLLocation (const char *display_path, int line, int column) | |
std::string | str () const |
const char * | get_path () const |
int | get_line () const |
int | get_column () const |
void | set_path (const char *path) |
Protected Attributes | |
const char * | _pdisplay_path |
int | _line |
int | _column |
Friends | |
struct | XMLReader |
location of XML Node including XML file name
Definition at line 827 of file xmlstorage.h.
XMLStorage::XMLLocation::XMLLocation | ( | ) | [inline] |
Definition at line 829 of file xmlstorage.h.
: _pdisplay_path(NULL), _line(0), _column(0) { }
XMLStorage::XMLLocation::XMLLocation | ( | const char * | display_path, |
int | line, | ||
int | column | ||
) | [inline] |
Definition at line 836 of file xmlstorage.h.
: _pdisplay_path(display_path), _line(line), _column(column) { }
int XMLStorage::XMLLocation::get_column | ( | ) | const [inline] |
int XMLStorage::XMLLocation::get_line | ( | ) | const [inline] |
const char* XMLStorage::XMLLocation::get_path | ( | ) | const [inline] |
Definition at line 845 of file xmlstorage.h.
References _pdisplay_path.
{return _pdisplay_path? _pdisplay_path: "";}
void XMLStorage::XMLLocation::set_path | ( | const char * | path ) | [inline] |
Definition at line 849 of file xmlstorage.h.
References _column, _line, and _pdisplay_path.
Referenced by XMLStorage::XMLReaderBase::setSystemId().
{ _pdisplay_path = path; _line = 1; _column = 1; }
std::string XMLStorage::XMLLocation::str | ( | ) | const |
Definition at line 729 of file xmlstorage.cpp.
Referenced by XMLStorage::XMLReaderBase::get_position().
{ std::ostringstream out; if (_pdisplay_path) out << _pdisplay_path; out << "(" << _line << ")"; if (_column > 1) out << " [column " << _column << "]"; out << " :"; return out.str(); }
friend struct XMLReader [friend] |
Definition at line 861 of file xmlstorage.h.
int XMLStorage::XMLLocation::_column [protected] |
Definition at line 859 of file xmlstorage.h.
Referenced by XMLStorage::XMLReader::get(), get_column(), and set_path().
int XMLStorage::XMLLocation::_line [protected] |
Definition at line 858 of file xmlstorage.h.
Referenced by XMLStorage::XMLReader::get(), get_line(), and set_path().
const char* XMLStorage::XMLLocation::_pdisplay_path [protected] |
Definition at line 857 of file xmlstorage.h.
Referenced by get_path(), and set_path().
ROS Explorer Source Code Documentation
generated on 02.01.2013 by ![]() |