Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / ACEXML / parser / debug_validator / Debug_DTD_Manager.cpp
blobcff827cb67e3e92c32fb9253858d2a0dce8eb622
1 // -*- C++ -*-
3 #include "ACEXML/common/SAXExceptions.h"
4 #include "ACEXML/parser/debug_validator/Debug_DTD_Manager.h"
5 #include "ACEXML/parser/debug_validator/Debug_Element_Builder.h"
6 #include "ACEXML/parser/debug_validator/Debug_Attributes_Builder.h"
8 ACEXML_Debug_DTD_Manager::ACEXML_Debug_DTD_Manager ()
12 ACEXML_Debug_DTD_Manager::~ACEXML_Debug_DTD_Manager ()
16 ACEXML_Element_Def_Builder *
17 ACEXML_Debug_DTD_Manager::getElement_Def_Builder ()
19 return new ACEXML_Debug_Element_Builder ();
22 int
23 ACEXML_Debug_DTD_Manager::insertElement_Definition (ACEXML_Element_Def_Builder *def)
25 ACEXML_Element_Def_Builder::VAR ptr (def);
27 if (def != 0)
29 ptr->dump ();
30 return 0;
33 ACEXML_THROW_RETURN (ACEXML_SAXParseException (ACE_TEXT("ACEXML_Debug_Attributes_Builder internal error")), -1);
36 ACEXML_Attributes_Def_Builder *
37 ACEXML_Debug_DTD_Manager::getAttribute_Def_Builder ()
39 ACEXML_Attributes_Def_Builder *tmp;
40 ACE_NEW_RETURN (tmp,
41 ACEXML_Debug_Attributes_Builder (),
42 0);
43 return tmp;
46 int
47 ACEXML_Debug_DTD_Manager::insertAttributes_Definition (ACEXML_Attributes_Def_Builder *def)
49 ACEXML_Attributes_Def_Builder::VAR ptr (def);
50 if (def != 0)
52 ptr->dump ();
53 return 0;
56 ACEXML_THROW_RETURN (ACEXML_SAXParseException (ACE_TEXT("ACEXML_Debug_Attributes_Builder internal error")), -1);
59 ACEXML_Validator *
60 ACEXML_Debug_DTD_Manager::getValidator (const ACEXML_Char *,
61 const ACEXML_Char *,
62 const ACEXML_Char *)
64 ACEXML_THROW_RETURN (ACEXML_SAXNotSupportedException (ACE_TEXT ("getValidator()")), 0);