#include <cppdom.h>
Public Methods | |
XMLLocation () | |
Constructor. More... | |
int | getLine () const |
returns current line. More... | |
int | getPos () const |
returns current position in a line. More... | |
void | step (int chars=1) |
advances a char. More... | |
void | newline () |
indicates entering a new line. More... | |
void | reset () |
reset location. More... | |
Protected Attributes | |
int | mLine |
int | mPos |
Definition at line 130 of file cppdom.h.
|
Constructor.
Definition at line 105 of file cppdom.cpp. References reset().
00106 { 00107 reset(); 00108 } |
|
returns current line.
Definition at line 110 of file cppdom.cpp. References mLine.
00111 { 00112 return mLine; 00113 } |
|
returns current position in a line.
Definition at line 115 of file cppdom.cpp. References mPos.
00116 { 00117 return mPos; 00118 } |
|
indicates entering a new line.
Definition at line 125 of file cppdom.cpp. Referenced by cppdom::xmlstream_iterator::isNewLine().
|
|
reset location.
Definition at line 131 of file cppdom.cpp. Referenced by XMLLocation().
|
|
advances a char.
Definition at line 120 of file cppdom.cpp. References mPos. Referenced by cppdom::xmlstream_iterator::getNext().
00121 { 00122 mPos += chars; 00123 } |
|
|
|
|