2002-09-02 12:36:06 +02:00
|
|
|
#define pasty(m, n) m##n
|
|
|
|
#define include pasty(#, include)
|
|
|
|
#define ifdef pasty(#, ifdef)
|
|
|
|
#define ifndef pasty(#, ifndef)
|
|
|
|
#define endif pasty(#, endif)
|
|
|
|
#define define pasty(#, define)
|
|
|
|
#define message pasty(#, pragma message)
|
|
|
|
#define undef pasty(#, undef)
|
|
|
|
#define error pasty(#, error)
|
|
|
|
#define else pasty(#, else)
|
|
|
|
#define comment pasty(#, pragma comment)
|
|
|
|
|
|
|
|
|
|
|
|
ifndef ParserConfig_h
|
|
|
|
define ParserConfig_h
|
|
|
|
|
|
|
|
#ifdef USE_LIBXML2
|
|
|
|
message("Including libxml2")
|
|
|
|
include <SAX/wrappers/saxlibxml2.h>
|
|
|
|
undef DEF_SAX_P
|
|
|
|
define DEF_SAX_P libxml2_wrapper
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
comment(lib, "libxml2.lib")
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#ifdef USE_MSXML
|
|
|
|
message("Including MSXML")
|
|
|
|
include <SAX/wrappers/saxmsxml2.h>
|
|
|
|
undef DEF_SAX_P
|
|
|
|
define DEF_SAX_P msxml2_wrapper
|
|
|
|
#endif
|
2002-09-03 16:06:48 +02:00
|
|
|
#ifdef USE_XERCES1
|
|
|
|
message("Including Xerces 1")
|
2002-09-02 12:36:06 +02:00
|
|
|
include <SAX/wrappers/saxxerces.h>
|
|
|
|
undef DEF_SAX_P
|
|
|
|
define DEF_SAX_P xerces_wrapper
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
comment(lib, "xerces-c_1.lib")
|
|
|
|
#endif
|
|
|
|
#endif
|
2002-09-03 16:06:48 +02:00
|
|
|
#ifdef USE_XERCES
|
|
|
|
message("Including Xerces")
|
|
|
|
include <SAX/wrappers/saxxerces.h>
|
|
|
|
undef DEF_SAX_P
|
|
|
|
define DEF_SAX_P xerces_wrapper
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
comment(lib, "xerces-c_2.lib")
|
|
|
|
#endif
|
|
|
|
#endif
|
2002-09-02 12:36:06 +02:00
|
|
|
#ifdef USE_GARDEN
|
|
|
|
message("Including Garden")
|
|
|
|
include <SAX/parsers/saxgarden.h>
|
|
|
|
undef DEF_SAX_P
|
|
|
|
define DEF_SAX_P Garden
|
|
|
|
#endif
|
|
|
|
#ifdef USE_EXPAT
|
|
|
|
message("Including Expat")
|
|
|
|
include <SAX/wrappers/saxexpat.h>
|
|
|
|
undef DEF_SAX_P
|
|
|
|
define DEF_SAX_P expat_wrapper
|
|
|
|
#ifdef _MSC_VER
|
2002-09-03 15:44:23 +02:00
|
|
|
comment(lib, "libexpat.lib")
|
2002-09-02 12:36:06 +02:00
|
|
|
#endif
|
|
|
|
#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
|
|
|
|
|
|
|
|
endif // ParserConfig_h
|