summaryrefslogtreecommitdiff
path: root/TAO/CIAO/DAnCE/Config_Handlers/Config_Error_Handler.h
blob: 4c039938d90422039b220962ec449c2e6f16bf25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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 */