Poco::XML

class LocatorImpl

File Information

Library: XML
Package: SAX
Header: Poco/SAX/LocatorImpl.h

Description

Provide an optional convenience implementation of Locator.

Inheritance

Direct Base Classes: Locator

All Base Classes: Locator

Member Summary

Member Functions: getColumnNumber, getLineNumber, getPublicId, getSystemId, operator =, setColumnNumber, setLineNumber, setPublicId, setSystemId

Inherited Functions: getColumnNumber, getLineNumber, getPublicId, getSystemId

Constructors

LocatorImpl

LocatorImpl();

Zero-argument constructor.

This will not normally be useful, since the main purpose of this class is to make a snapshot of an existing Locator.

LocatorImpl

LocatorImpl(
    const Locator & loc
);

Copy constructor.

Create a persistent copy of the current state of a locator. When the original locator changes, this copy will still keep the original values (and it can be used outside the scope of DocumentHandler methods).

Destructor

~LocatorImpl virtual

~LocatorImpl();

Destroys the Locator.

Member Functions

getColumnNumber virtual

int getColumnNumber() const;

Return the saved column number (1-based).

getLineNumber virtual

int getLineNumber() const;

Return the saved line number (1-based).

getPublicId virtual

XMLString getPublicId() const;

Return the saved public identifier.

getSystemId virtual

XMLString getSystemId() const;

Return the saved system identifier.

operator =

LocatorImpl & operator = (
    const Locator & loc
);

Assignment operator.

setColumnNumber

void setColumnNumber(
    int columnNumber
);

Set the column number for this locator (1-based).

setLineNumber

void setLineNumber(
    int lineNumber
);

Set the line number for this locator (1-based).

setPublicId

void setPublicId(
    const XMLString & publicId
);

Set the public identifier for this locator.

setSystemId

void setSystemId(
    const XMLString & systemId
);

Set the system identifier for this locator.

Securely control IoT edge devices from anywhere   Connect a Device