Public Member Functions | Protected Attributes | Friends

XMLStorage::XMLLocation Struct Reference

location of XML Node including XML file name More...

#include <xmlstorage.h>

Collaboration diagram for XMLStorage::XMLLocation:
Collaboration graph

List of all members.

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


struct XMLReader

Detailed Description

location of XML Node including XML file name

Definition at line 827 of file xmlstorage.h.

Constructor & Destructor Documentation

XMLStorage::XMLLocation::XMLLocation (  ) [inline]

Definition at line 829 of file xmlstorage.h.

     :  _pdisplay_path(NULL),
XMLStorage::XMLLocation::XMLLocation ( const char *  display_path,
int  line,
int  column 
) [inline]

Definition at line 836 of file xmlstorage.h.

     :  _pdisplay_path(display_path),

Member Function Documentation

int XMLStorage::XMLLocation::get_column (  ) const [inline]

Definition at line 847 of file xmlstorage.h.

References _column.

{return _column;}
int XMLStorage::XMLLocation::get_line (  ) const [inline]

Definition at line 846 of file xmlstorage.h.

References _line.

{return _line;}
const char* XMLStorage::XMLLocation::get_path (  ) const [inline]

Definition at line 845 of file xmlstorage.h.

References _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;

Here is the caller graph for this function:

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();

Here is the caller graph for this function:

Friends And Related Function Documentation

friend struct XMLReader [friend]

Definition at line 861 of file xmlstorage.h.

Member Data Documentation

Definition at line 859 of file xmlstorage.h.

Referenced by XMLStorage::XMLReader::get(), get_column(), and set_path().

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().

The documentation for this struct was generated from the following files:

ROS Explorer Source Code Documentation
generated on 02.01.2013 by doxygen

ROS Explorer Homepage