Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanLocator.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #if !defined(XALANLOCATOR_HEADER_GUARD_1357924680)
17 #define XALANLOCATOR_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base include file. Must be first.
23 
24 
25 
26 #include <xercesc/sax/Locator.hpp>
27 
28 
29 
30 XALAN_CPP_NAMESPACE_BEGIN
31 
32 
33 
34 XALAN_USING_XERCES(Locator)
35 
36 
37 
38 
43 {
44 public:
45 
46  typedef Locator ParentType;
47 
48  typedef XMLSSize_t size_type;
49 
51 
52  virtual
54 
55  virtual const XMLCh*
56  getPublicId() const = 0;
57 
58  virtual const XMLCh*
59  getSystemId() const = 0;
60 
61  virtual size_type
62  getLineNumber() const = 0;
63 
64  virtual size_type
65  getColumnNumber() const = 0;
66 
67  static size_type
68  getLineNumber(const ParentType* theLocator)
69  {
70  return theLocator == 0 ? size_type(-1) : theLocator->getLineNumber();
71  }
72 
73  static size_type
74  getColumnNumber(const ParentType* theLocator)
75  {
76  return theLocator == 0 ? size_type(-1) : theLocator->getColumnNumber();
77  }
78 
79  static size_type
81  {
82  return size_type(-1);
83  }
84 
85 private:
86 
87  // Not defined...
88  XalanLocator(const XalanLocator&);
89 
91  operator=(const XalanLocator&);
92 };
93 
94 
95 
96 XALAN_CPP_NAMESPACE_END
97 
98 
99 
100 #endif // PREFIXRESOLVER_HEADER_GUARD_1357924680
XalanLocator()
Definition: XalanLocator.hpp:50
This class defines a base class for Locator derivations in Xalan.
Definition: XalanLocator.hpp:42
virtual ~XalanLocator()
Definition: XalanLocator.hpp:53
static size_type getLineNumber(const ParentType *theLocator)
Definition: XalanLocator.hpp:68
static size_type getUnknownValue()
Definition: XalanLocator.hpp:80
XALAN_CPP_NAMESPACE_BEGIN typedef size_t size_type
Definition: XalanMap.hpp:44
static size_type getColumnNumber(const ParentType *theLocator)
Definition: XalanLocator.hpp:74
XMLSSize_t size_type
Definition: XalanLocator.hpp:48
#define XALAN_PLATFORMSUPPORT_EXPORT
Definition: PlatformSupportDefinitions.hpp:33
Locator ParentType
Definition: XalanLocator.hpp:46

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

dot

Xalan-C++ XSLT Processor Version 1.10
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.

Apache Logo