class Poco::XML::LocatorImpl
Overview
Provide an optional convenience implementation of Locator. Moreā¦
#include <LocatorImpl.h> class LocatorImpl: public Poco::XML::Locator { public: // construction LocatorImpl(); LocatorImpl(const Locator& loc); // methods LocatorImpl& operator=(const Locator& loc); virtual XMLString getPublicId() const; virtual XMLString getSystemId() const; virtual int getLineNumber() const; virtual int getColumnNumber() const; void setPublicId(const XMLString& publicId); void setSystemId(const XMLString& systemId); void setLineNumber(int lineNumber); void setColumnNumber(int columnNumber); };
Inherited Members
public: // methods virtual XMLString getPublicId() const = 0; virtual XMLString getSystemId() const = 0; virtual int getLineNumber() const = 0; virtual int getColumnNumber() const = 0;
Detailed Documentation
Provide an optional convenience implementation of Locator.
Construction
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(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).
Methods
LocatorImpl& operator=(const Locator& loc)
Assignment operator.
virtual XMLString getPublicId() const
Return the saved public identifier.
virtual XMLString getSystemId() const
Return the saved system identifier.
virtual int getLineNumber() const
Return the saved line number (1-based).
virtual int getColumnNumber() const
Return the saved column number (1-based).
void setPublicId(const XMLString& publicId)
Set the public identifier for this locator.
void setSystemId(const XMLString& systemId)
Set the system identifier for this locator.
void setLineNumber(int lineNumber)
Set the line number for this locator (1-based).
void setColumnNumber(int columnNumber)
Set the column number for this locator (1-based).