ACEXML
Snapshot(2023/04/28-19:12)
ACEXML
common
Locator.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
3
//=============================================================================
4
/**
5
* @file Locator.h
6
*
7
* @author Nanbor Wang <nanbor@cs.wustl.edu>
8
*/
9
//=============================================================================
10
11
#ifndef _ACEXML_LOCATOR_H_
12
#define _ACEXML_LOCATOR_H_
13
#include
/**/
"ace/pre.h"
14
15
#include "
ACEXML/common/ACEXML_Export.h
"
16
#include "
ACEXML/common/XML_Types.h
"
17
18
/**
19
* @class ACEXML_Locator
20
*
21
* @brief ACEXML_Locator defines operations that an XML locator should support.
22
*
23
* If a SAX parser provides location information to the SAX
24
* application, it does so by implementing this interface and then
25
* passing an instance to the application using the content handler's
26
* setDocumentLocator method. The application can use the object to
27
* obtain the location of any other content handler event in the XML
28
* source document.
29
*
30
* Note that the results returned by the object will be valid only
31
* during the scope of each content handler method: the application
32
* will receive unpredictable results if it attempts to use the
33
* locator at any other time.
34
*
35
* SAX parsers are not required to supply a locator, but they are very
36
* strongly encouraged to do so. If the parser supplies a locator, it
37
* must do so before reporting any other document events. If no
38
* locator has been set by the time the application receives the
39
* startDocument event, the application should assume that a locator
40
* is not available.
41
*/
42
class
ACEXML_Export
ACEXML_Locator
43
{
44
public
:
45
46
virtual
~
ACEXML_Locator
(
void
);
47
48
/*
49
* Return the column number where the current document event ends.
50
*/
51
virtual
int
getColumnNumber (
void
)
const
= 0;
52
53
/*
54
* Return the line number where the current document event ends.
55
*/
56
virtual
int
getLineNumber (
void
)
const
= 0;
57
58
/*
59
* Return the public identifier for the current document event.
60
*/
61
virtual
const
ACEXML_Char
*getPublicId (
void
)
const
= 0;
62
63
/*
64
* Return the system identifier for the current document event.
65
*/
66
virtual
const
ACEXML_Char
*getSystemId (
void
)
const
= 0;
67
};
68
69
70
#include
/**/
"ace/post.h"
71
72
#endif
/* _ACEXML_LOCATOR_H_ */
ACEXML_Export
#define ACEXML_Export
Definition:
ACEXML_Export.h:35
XML_Types.h
ACEXML_Export.h
ACEXML_Locator
ACEXML_Locator defines operations that an XML locator should support.
Definition:
Locator.h:42
ACEXML_Char
ACE_TCHAR ACEXML_Char
Definition:
XML_Types.h:55
Generated by
1.8.13