Removed big ifdef ladder for selecting parsers. This is now down at library compile time

using parserconfig.h
This commit is contained in:
jez_higgins 2002-09-02 10:35:58 +00:00
parent bac99bcd8a
commit 52d4555fac

View file

@ -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