knoaman 2002/12/23 07:23:18
Modified: c/src/xercesc/dom DOMBuilder.hpp
c/src/xercesc/dom/deprecated DOMParser.cpp DOMParser.hpp
c/src/xercesc/parsers DOMBuilderImpl.cpp DOMBuilderImpl.hpp
SAX2XMLReaderImpl.hpp SAXParser.cpp SAXParser.hpp
XercesDOMParser.cpp XercesDOMParser.hpp
c/src/xercesc/sax2 SAX2XMLReader.hpp
Log:
Added a public api to various parsers to return the src offset within the input
source.
Revision Changes Path
1.10 +8 -1 xml-xerces/c/src/xercesc/dom/DOMBuilder.hpp
Index: DOMBuilder.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/DOMBuilder.hpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- DOMBuilder.hpp 4 Nov 2002 15:09:24 -0000 1.9
+++ DOMBuilder.hpp 23 Dec 2002 15:23:17 -0000 1.10
@@ -700,6 +700,13 @@
*/
virtual void resetCachedGrammarPool() = 0;
+ /**
+ * Returns the current src offset within the input source.
+ *
+ * @return offset within the input source
+ */
+ virtual unsigned int getSrcOffset() const = 0;
+
//@}
};
1.11 +6 -1 xml-xerces/c/src/xercesc/dom/deprecated/DOMParser.cpp
Index: DOMParser.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/deprecated/DOMParser.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- DOMParser.cpp 4 Dec 2002 01:47:08 -0000 1.10
+++ DOMParser.cpp 23 Dec 2002 15:23:17 -0000 1.11
@@ -273,6 +273,11 @@
return fScanner->getCalculateSrcOfs();
}
+unsigned int DOMParser::getSrcOffset() const
+{
+ return fScanner->getSrcOffset();
+}
+
// ---------------------------------------------------------------------------
// DOMParser: Setter methods
// ---------------------------------------------------------------------------
1.13 +8 -1 xml-xerces/c/src/xercesc/dom/deprecated/DOMParser.hpp
Index: DOMParser.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/deprecated/DOMParser.hpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- DOMParser.hpp 4 Dec 2002 01:47:08 -0000 1.12
+++ DOMParser.hpp 23 Dec 2002 15:23:17 -0000 1.13
@@ -436,6 +436,13 @@
*/
const XMLCh* getURIText(unsigned int uriId);
+ /**
+ * Returns the current src offset within the input source.
+ *
+ * @return offset within the input source
+ */
+ unsigned int getSrcOffset() const;
+
//@}
1.16 +6 -1 xml-xerces/c/src/xercesc/parsers/DOMBuilderImpl.cpp
Index: DOMBuilderImpl.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/parsers/DOMBuilderImpl.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- DOMBuilderImpl.cpp 4 Dec 2002 22:07:52 -0000 1.15
+++ DOMBuilderImpl.cpp 23 Dec 2002 15:23:18 -0000 1.16
@@ -610,5 +610,10 @@
return getScanner()->getURIText(uriId);
}
+unsigned int DOMBuilderImpl::getSrcOffset() const
+{
+ return getScanner()->getSrcOffset();
+}
+
XERCES_CPP_NAMESPACE_END
1.11 +8 -1 xml-xerces/c/src/xercesc/parsers/DOMBuilderImpl.hpp
Index: DOMBuilderImpl.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/parsers/DOMBuilderImpl.hpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- DOMBuilderImpl.hpp 4 Nov 2002 14:57:03 -0000 1.10
+++ DOMBuilderImpl.hpp 23 Dec 2002 15:23:18 -0000 1.11
@@ -638,6 +638,13 @@
*/
virtual void resetCachedGrammarPool();
+ /**
+ * Returns the current src offset within the input source.
+ *
+ * @return offset within the input source
+ */
+ virtual unsigned int getSrcOffset() const;
+
//@}
// -----------------------------------------------------------------------
1.16 +15 -0 xml-xerces/c/src/xercesc/parsers/SAX2XMLReaderImpl.hpp
Index: SAX2XMLReaderImpl.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/parsers/SAX2XMLReaderImpl.hpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- SAX2XMLReaderImpl.hpp 4 Dec 2002 01:57:09 -0000 1.15
+++ SAX2XMLReaderImpl.hpp 23 Dec 2002 15:23:18 -0000 1.16
@@ -56,6 +56,10 @@
/*
* $Log$
+ * Revision 1.16 2002/12/23 15:23:18 knoaman
+ * Added a public api to various parsers to return the src offset within the input
+ * source.
+ *
* Revision 1.15 2002/12/04 01:57:09 knoaman
* Scanner re-organization.
*
@@ -649,6 +653,13 @@
*/
virtual const XMLCh* getURIText(unsigned int uriId);
+ /**
+ * Returns the current src offset within the input source.
+ *
+ * @return offset within the input source
+ */
+ virtual unsigned int getSrcOffset() const;
+
//@}
// -----------------------------------------------------------------------
@@ -1819,6 +1830,11 @@
inline const XMLCh* SAX2XMLReaderImpl::getURIText(unsigned int uriId)
{
return fScanner->getURIText(uriId);
+}
+
+inline unsigned int SAX2XMLReaderImpl::getSrcOffset() const
+{
+ return fScanner->getSrcOffset();
}
XERCES_CPP_NAMESPACE_END
1.11 +8 -0 xml-xerces/c/src/xercesc/parsers/SAXParser.cpp
Index: SAXParser.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/parsers/SAXParser.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- SAXParser.cpp 4 Dec 2002 01:57:09 -0000 1.10
+++ SAXParser.cpp 23 Dec 2002 15:23:18 -0000 1.11
@@ -56,6 +56,10 @@
/*
* $Log$
+ * Revision 1.11 2002/12/23 15:23:18 knoaman
+ * Added a public api to various parsers to return the src offset within the input
+ * source.
+ *
* Revision 1.10 2002/12/04 01:57:09 knoaman
* Scanner re-organization.
*
@@ -453,6 +457,11 @@
const XMLCh* SAXParser::getURIText(unsigned int uriId)
{
return fScanner->getURIText(uriId);
+}
+
+unsigned int SAXParser::getSrcOffset() const
+{
+ return fScanner->getSrcOffset();
}
// ---------------------------------------------------------------------------
1.16 +10 -0 xml-xerces/c/src/xercesc/parsers/SAXParser.hpp
Index: SAXParser.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/parsers/SAXParser.hpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- SAXParser.hpp 4 Dec 2002 01:57:09 -0000 1.15
+++ SAXParser.hpp 23 Dec 2002 15:23:18 -0000 1.16
@@ -56,6 +56,10 @@
/*
* $Log$
+ * Revision 1.16 2002/12/23 15:23:18 knoaman
+ * Added a public api to various parsers to return the src offset within the input
+ * source.
+ *
* Revision 1.15 2002/12/04 01:57:09 knoaman
* Scanner re-organization.
*
@@ -516,6 +520,13 @@
* @return URI string corresponding to the URI id.
*/
const XMLCh* getURIText(unsigned int uriId);
+
+ /**
+ * Returns the current src offset within the input source.
+ *
+ * @return offset within the input source
+ */
+ unsigned int getSrcOffset() const;
//@}
1.10 +5 -1 xml-xerces/c/src/xercesc/parsers/XercesDOMParser.cpp
Index: XercesDOMParser.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/parsers/XercesDOMParser.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- XercesDOMParser.cpp 4 Dec 2002 01:57:09 -0000 1.9
+++ XercesDOMParser.cpp 23 Dec 2002 15:23:18 -0000 1.10
@@ -125,6 +125,10 @@
return getScanner()->getURIText(uriId);
}
+unsigned int XercesDOMParser::getSrcOffset() const
+{
+ return getScanner()->getSrcOffset();
+}
// ---------------------------------------------------------------------------
// XercesDOMParser: Setter methods
1.12 +8 -1 xml-xerces/c/src/xercesc/parsers/XercesDOMParser.hpp
Index: XercesDOMParser.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/parsers/XercesDOMParser.hpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- XercesDOMParser.hpp 4 Nov 2002 14:57:03 -0000 1.11
+++ XercesDOMParser.hpp 23 Dec 2002 15:23:18 -0000 1.12
@@ -201,6 +201,13 @@
*/
const XMLCh* getURIText(unsigned int uriId);
+ /**
+ * Returns the current src offset within the input source.
+ *
+ * @return offset within the input source
+ */
+ unsigned int getSrcOffset() const;
+
//@}
1.8 +10 -0 xml-xerces/c/src/xercesc/sax2/SAX2XMLReader.hpp
Index: SAX2XMLReader.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/sax2/SAX2XMLReader.hpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- SAX2XMLReader.hpp 4 Nov 2002 14:55:45 -0000 1.7
+++ SAX2XMLReader.hpp 23 Dec 2002 15:23:18 -0000 1.8
@@ -56,6 +56,10 @@
/*
* $Log$
+ * Revision 1.8 2002/12/23 15:23:18 knoaman
+ * Added a public api to various parsers to return the src offset within the input
+ * source.
+ *
* Revision 1.7 2002/11/04 14:55:45 tng
* C++ Namespace Support.
*
@@ -616,6 +620,13 @@
* @return URI string corresponding to the URI id.
*/
virtual const XMLCh* getURIText(unsigned int uriId) = 0;
+
+ /**
+ * Returns the current src offset within the input source.
+ *
+ * @return offset within the input source
+ */
+ virtual unsigned int getSrcOffset() const = 0;
//@}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]