dbertoni 01/07/17 21:18:02
Modified: c/src/PlatformSupport ExecutionContext.hpp
Log:
Added overloads for Locators.
Revision Changes Path
1.5 +92 -13 xml-xalan/c/src/PlatformSupport/ExecutionContext.hpp
Index: ExecutionContext.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/ExecutionContext.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ExecutionContext.hpp 2000/11/02 01:45:36 1.4
+++ ExecutionContext.hpp 2001/07/18 04:18:02 1.5
@@ -69,6 +69,7 @@
+class Locator;
class XalanNode;
@@ -87,11 +88,11 @@
~ExecutionContext();
/**
- * Tell the user of an error, and probably throw an exception.
+ * Tell the user of an error, and throw an exception.
*
* @param msg text of message to output
- * @param sourceNode node in source where error occurred
- * @param styleNode node in stylesheet where error occurred
+ * @param sourceNode node in source where the error occurred
+ * @param styleNode node in stylesheet where the error occurred
*/
virtual void
error(
@@ -100,11 +101,24 @@
const XalanNode* styleNode = 0) const =
0;
/**
- * Tell the user of an error, and probably throw an exception.
+ * Tell the user of an error, and throw an exception.
*
* @param msg text of message to output
- * @param sourceNode node in source where error occurred
- * @param styleNode node in stylesheet where error occurred
+ * @param sourceNode node in source where the error occurred. May be 0.
+ * @param locator A Locator to determine where the error occurred.
May be 0.
+ */
+ virtual void
+ error(
+ const XalanDOMString& msg,
+ const XalanNode* sourceNode,
+ const Locator* locator) const = 0;
+
+ /**
+ * Tell the user of an error, and throw an exception.
+ *
+ * @param msg text of message to output
+ * @param sourceNode node in source where the error occurred
+ * @param styleNode node in stylesheet where the error occurred
*/
virtual void
error(
@@ -113,24 +127,50 @@
const XalanNode* styleNode = 0) const = 0;
/**
- * Tell the user of an warning, and probably throw an exception.
+ * Tell the user of an error, and throw an exception.
*
* @param msg text of message to output
- * @param sourceNode node in source where error occurred
- * @param styleNode node in stylesheet where error occurred
+ * @param sourceNode node in source where the error occurred. May be 0.
+ * @param locator A Locator to determine where the error occurred.
May be 0.
*/
virtual void
+ error(
+ const char* msg,
+ const XalanNode* sourceNode,
+ const Locator* locator) const = 0;
+
+ /**
+ * Tell the user of an warning.
+ *
+ * @param msg text of message to output
+ * @param sourceNode node in source where the warning occurred
+ * @param styleNode node in stylesheet where the warning occurred
+ */
+ virtual void
warn(
const XalanDOMString& msg,
const XalanNode* sourceNode = 0,
const XalanNode* styleNode = 0) const =
0;
/**
+ * Tell the user of a warning.
+ *
+ * @param msg text of message to output
+ * @param sourceNode node in source where the warning occurred. May be
0.
+ * @param locator A Locator to determine where the warning occurred.
May be 0.
+ */
+ virtual void
+ warn(
+ const XalanDOMString& msg,
+ const XalanNode* sourceNode,
+ const Locator* locator) const = 0;
+
+ /**
* Tell the user of an warning, and probably throw an exception.
*
* @param msg text of message to output
- * @param sourceNode node in source where error occurred
- * @param styleNode node in stylesheet where error occurred
+ * @param sourceNode node in source where the warning occurred
+ * @param styleNode node in stylesheet where the warning occurred
*/
virtual void
warn(
@@ -139,6 +179,19 @@
const XalanNode* styleNode = 0) const = 0;
/**
+ * Tell the user of a warning.
+ *
+ * @param msg text of message to output
+ * @param sourceNode node in source where the warning occurred. May be
0.
+ * @param locator A Locator to determine where the warning occurred.
May be 0.
+ */
+ virtual void
+ warn(
+ const char* msg,
+ const XalanNode* sourceNode,
+ const Locator* locator) const = 0;
+
+ /**
* Output a message.
*
* @param msg text of message to output
@@ -155,14 +208,40 @@
* Output a message.
*
* @param msg text of message to output
- * @param sourceNode node in source where error occurred
- * @param styleNode node in stylesheet where error occurred
+ * @param sourceNode node in source where the message occurred. May be
0.
+ * @param locator A Locator to determine where the message occurred.
May be 0.
+ */
+ virtual void
+ message(
+ const XalanDOMString& msg,
+ const XalanNode* sourceNode,
+ const Locator* locator) const = 0;
+
+ /**
+ * Output a message.
+ *
+ * @param msg text of message to output
+ * @param sourceNode node in source where the message occurred
+ * @param styleNode node in stylesheet where the message occurred
*/
virtual void
message(
const char* msg,
const XalanNode* sourceNode = 0,
const XalanNode* styleNode = 0) const = 0;
+
+ /**
+ * Output a message.
+ *
+ * @param msg text of message to output
+ * @param sourceNode node in source where the message occurred. May be
0.
+ * @param locator A Locator to determine where the message occurred.
May be 0.
+ */
+ virtual void
+ message(
+ const char* msg,
+ const XalanNode* sourceNode,
+ const Locator* locator) const = 0;
};
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]