Remove dynamic exceptions
[anna.git] / include / anna / xml / DTDFile.hpp
1 // ANNA - Anna is Not Nothingness Anymore                                                         //
2 //                                                                                                //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo                         //
4 //                                                                                                //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite                           //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7
8
9 #ifndef anna_xml_DTDFile_hpp
10 #define anna_xml_DTDFile_hpp
11
12 #include <anna/xml/DTD.hpp>
13
14 namespace anna {
15
16 namespace xml {
17
18 /**
19    Clase para gestionar una DTD contenida en un archivo.
20 */
21 class DTDFile : public DTD {
22 public:
23
24   /**
25      Constructor
26      \param file File name
27   */
28   DTDFile(const char *file = NULL) { if (file) initialize(file); }
29
30 private:
31   _xmlDtd* parse(const char* fileName) const noexcept(false);
32 };
33
34 }
35 }
36
37 #endif