summaryrefslogtreecommitdiff
path: root/TAO/CIAO/DAnCE/Config_Handlers/Config_Error_Handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/CIAO/DAnCE/Config_Handlers/Config_Error_Handler.h')
-rw-r--r--TAO/CIAO/DAnCE/Config_Handlers/Config_Error_Handler.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/TAO/CIAO/DAnCE/Config_Handlers/Config_Error_Handler.h b/TAO/CIAO/DAnCE/Config_Handlers/Config_Error_Handler.h
new file mode 100644
index 00000000000..4c039938d90
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Config_Handlers/Config_Error_Handler.h
@@ -0,0 +1,50 @@
+// $Id$
+
+#ifndef CONFIG_ERROR_HANDLER_H
+#define CONFIG_ERROR_HANDLER_H
+
+#include /**/ "ace/pre.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include <xercesc/dom/DOMErrorHandler.hpp>
+#include "Config_Handler_export.h"
+
+using xercesc::DOMErrorHandler;
+using xercesc::DOMError;
+
+namespace CIAO
+{
+ namespace Config_Handler
+ {
+ class Config_Handler_Export Config_Error_Handler : public DOMErrorHandler
+ {
+ public:
+
+ Config_Error_Handler ();
+
+ ~Config_Error_Handler ();
+
+ bool handleError (const DOMError& domError);
+
+ void resetErrors ();
+
+ bool getErrors() const;
+
+ private :
+ // Disallow copying
+ Config_Error_Handler (const Config_Error_Handler&);
+ Config_Error_Handler& operator= (const Config_Error_Handler&);
+
+ bool errors_;
+
+ };
+
+ };
+}
+
+#include /**/ "ace/post.h"
+
+#endif /* CONFIG_ERROR_HANDLER_H */