mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-29 08:36:45 +01:00
Removed big ifdef ladder for selecting parsers. This is now down at library compile time
using parserconfig.h
This commit is contained in:
parent
bac99bcd8a
commit
52d4555fac
1 changed files with 1 additions and 45 deletions
|
@ -405,51 +405,7 @@ public:
|
|||
|
||||
}; // namespace SAX
|
||||
|
||||
// ifdef ladder to set up the default parser
|
||||
#ifdef USE_LIBXML2
|
||||
#pragma message("Including libxml2")
|
||||
#include <SAX/wrappers/saxlibxml2.h>
|
||||
#undef DEF_SAX_P
|
||||
#define DEF_SAX_P libxml2_wrapper
|
||||
#endif
|
||||
#ifdef USE_MSXML
|
||||
#pragma message("Including MSXML")
|
||||
#include <SAX/wrappers/saxmsxml2.h>
|
||||
#undef DEF_SAX_P
|
||||
#define DEF_SAX_P msxml2_wrapper
|
||||
#endif
|
||||
#ifdef USE_XERCES
|
||||
#pragma message("Including Xerces")
|
||||
#include <SAX/wrappers/saxxerces.h>
|
||||
#undef DEF_SAX_P
|
||||
#define DEF_SAX_P xerces_wrapper
|
||||
#endif
|
||||
#ifdef USE_GARDEN
|
||||
#pragma message("Including Garden")
|
||||
#include <SAX/parsers/saxgarden.h>
|
||||
#undef DEF_SAX_P
|
||||
#define DEF_SAX_P Garden
|
||||
#endif
|
||||
#ifdef USE_EXPAT
|
||||
#pragma message("Including Expat")
|
||||
#include <SAX/wrappers/saxexpat.h>
|
||||
#undef DEF_SAX_P
|
||||
#define DEF_SAX_P expat_wrapper
|
||||
#endif
|
||||
|
||||
#ifndef NO_DEFAULT_PARSER
|
||||
#ifdef DEF_SAX_P
|
||||
namespace SAX
|
||||
{
|
||||
template<class string_type>
|
||||
class XMLReader : public DEF_SAX_P<string_type> { };
|
||||
} // namespace SAX
|
||||
#else
|
||||
#error "No default parser defined."
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#undef DEF_P
|
||||
#include <SAX/ParserConfig.h>
|
||||
|
||||
#endif
|
||||
// end of file
|
||||
|
|
Loading…
Add table
Reference in a new issue