|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CLocatorImpl: public CLocator { public: CLocatorImpl(); CLocatorImpl(const XLocator &pLocator); ~CLocatorImpl(); public: CString GetPublicId(); CString GetSystemId(); int GetLineNumber(); int GetColumnNumber(); public: void SetPublicId(const CString &strPublicId); void SetSystemId(const CString &strSystemId); void SetLineNumber(int nLineNumber); void SetColumnNumber(int nColumnNumber); };
The optional convenience implementation of the locator.
This class is available mainly for application writers, who can use it to make a persistent snapshot of a locator at any point during a document reding session:
Normally, reader developers will not use this class, since it is more efficient to provide location information only when requested, rather than constantly updating a locator object.
CLocator
Constructor/Destructor Summary | |
CLocatorImpl
();
����������Constructs the locator. |
|
CLocatorImpl
(const XLocator &pLocator);
����������Constructs the locator. |
|
~CLocatorImpl
();
����������Destroys the locator. |
Function Summary | |
CString
|
GetPublicId
();
����������Gets the saved public identifier. |
CString
|
GetSystemId
();
����������Gets the saved system identifier. |
int
|
GetLineNumber
();
����������Gets the saved line number (1-based). |
int
|
GetColumnNumber
();
����������Gets the saved column number (1-based). |
void
|
SetPublicId
(const CString &strPublicId);
����������Sets the public identifier for this locator. |
void
|
SetSystemId
(const CString &strSystemId);
����������Sets the system identifier for this locator. |
void
|
SetLineNumber
(int nLineNumber);
����������Sets the line number for this locator (1-based). |
void
|
SetColumnNumber
(int nColumnNumber);
����������Sets the column number for this locator (1-based). |
Constructor/Destructor Detail |
CLocatorImpl();
Constructs the locator.
This is a 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.
CLocatorImpl(const XLocator &pLocator);
Constructs the locator.
This is a copy constructor.
It creates 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 document handler methods).
pLocator
- the locator to copy~CLocatorImpl();
Destroys the locator.
Function Detail |
CString GetPublicId();
Gets the saved public identifier.
CString GetSystemId();
Gets the saved system identifier.
int GetLineNumber();
Gets the saved line number (1-based).
-1
if none is availableint GetColumnNumber();
Gets the saved column number (1-based).
-1
if none is availablevoid SetPublicId(const CString &strPublicId);
Sets the public identifier for this locator.
strPublicId
- the new public identifier, or the empty string
if none is availablevoid SetSystemId(const CString &strSystemId);
Sets the system identifier for this locator.
strSystemId
- the new system identifier, or the empty string
if none is availablevoid SetLineNumber(int nLineNumber);
Sets the line number for this locator (1-based).
nLineNumber
- the line number,
or
-1
if none is availablevoid SetColumnNumber(int nColumnNumber);
Sets the column number for this locator (1-based).
nColumnNumber
- the column number,
or
-1
if none is available
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |