Qt 4.8
Public Functions | Properties | List of all members
QXmlSimpleReaderLocator Class Reference
Inheritance diagram for QXmlSimpleReaderLocator:
QXmlLocator

Public Functions

int columnNumber () const
 Returns the column number (starting at 1) or -1 if there is no column number available. More...
 
int lineNumber () const
 Returns the line number (starting at 1) or -1 if there is no line number available. More...
 
 QXmlSimpleReaderLocator (QXmlSimpleReader *parent)
 
 ~QXmlSimpleReaderLocator ()
 
- Public Functions inherited from QXmlLocator
 QXmlLocator ()
 Constructor. More...
 
virtual ~QXmlLocator ()
 Destructor. More...
 

Properties

QXmlSimpleReaderreader
 

Detailed Description

Definition at line 689 of file qxml.cpp.

Constructors and Destructors

◆ QXmlSimpleReaderLocator()

QXmlSimpleReaderLocator::QXmlSimpleReaderLocator ( QXmlSimpleReader parent)
inline

Definition at line 692 of file qxml.cpp.

693  {
694  reader = parent;
695  }
QXmlSimpleReader * reader
Definition: qxml.cpp:712

◆ ~QXmlSimpleReaderLocator()

QXmlSimpleReaderLocator::~QXmlSimpleReaderLocator ( )
inline

Definition at line 696 of file qxml.cpp.

697  {
698  }

Functions

◆ columnNumber()

int QXmlSimpleReaderLocator::columnNumber ( ) const
inlinevirtual

Returns the column number (starting at 1) or -1 if there is no column number available.

Implements QXmlLocator.

Definition at line 700 of file qxml.cpp.

701  {
702  return (reader->d_ptr->columnNr == -1 ? -1 : reader->d_ptr->columnNr + 1);
703  }
QScopedPointer< QXmlSimpleReaderPrivate > d_ptr
Definition: qxml.h:276
QXmlSimpleReader * reader
Definition: qxml.cpp:712

◆ lineNumber()

int QXmlSimpleReaderLocator::lineNumber ( ) const
inlinevirtual

Returns the line number (starting at 1) or -1 if there is no line number available.

Implements QXmlLocator.

Definition at line 704 of file qxml.cpp.

705  {
706  return (reader->d_ptr->lineNr == -1 ? -1 : reader->d_ptr->lineNr + 1);
707  }
QScopedPointer< QXmlSimpleReaderPrivate > d_ptr
Definition: qxml.h:276
QXmlSimpleReader * reader
Definition: qxml.cpp:712

Properties

◆ reader

QXmlSimpleReader* QXmlSimpleReaderLocator::reader
private

Definition at line 712 of file qxml.cpp.


The documentation for this class was generated from the following file: