XMLSelection.h
Go to the documentation of this file.00001
00002 #ifndef __XML_SELECTION__
00003 #define __XML_SELECTION__
00004
00005 #ifdef USE_TINYXML
00006
00007 # include <tinyxml/tinyxml.h>
00008
00009 # if defined(TINYXML_MOD)
00010
00011
00012
00013
00014 #if defined (WIN32)
00015 # pragma message("XMLSelection: compiling against TinyXML_Mod")
00016 #endif
00017
00018 # if defined(WIN32) || defined (_WIN32_WCE)
00019 # ifdef TINYXML_MOD_STATIC
00020
00021
00022 # if defined(_DEBUG) || defined(DEBUG)
00023 # pragma message("XMLSelection: linking against static-version: TinyXML_ModLibd.lib")
00024 # pragma comment( lib, "TinyXML_ModLibd.lib" )
00025 # else
00026 # pragma message("XMLSelection: linking against static-version: TinyXML_ModLib.lib")
00027 # pragma comment( lib, "TinyXML_ModLib.lib" )
00028 # endif
00029
00030 # elif defined(TINYXML_MOD_DLL)
00031
00032
00033
00034
00035 # if defined(_DEBUG) || defined(DEBUG)
00036 # pragma message("XMLSelection: linking against DLL-version: TinyXML_Modd.lib")
00037 # pragma comment( lib, "TinyXML_Modd.lib" )
00038 # else
00039 # pragma message("XMLSelection: linking against DLL-version: TinyXML_Mod.lib")
00040 # pragma comment( lib, "TinyXML_Mod.lib" )
00041 # endif
00042
00043 # else
00044
00045 # pragma message("XMLSelection: TinyXML_Mod must be linked either static or dynamic.")
00046 # pragma message(" Please define either TINYXML_MOD_STATIC or TINYXML_MOD_DLL")
00047 # pragma error
00048
00049 # endif
00050
00051 # endif //defined(WIN32) || defined (_WIN32_WCE)
00052
00053 # else // defined(TINYXML_MOD)
00054
00055
00056 # pragma message("XMLSelection: compiling against standard TinyXML")
00057
00058 # if defined(_DEBUG) || defined(DEBUG)
00059 # pragma message("XMLSelection: linking against tinyxmld.lib")
00060 # pragma comment( lib, "tinyxmld.lib" )
00061 # else
00062 # pragma message("XMLSelection: linking against tinyxml.lib")
00063 # pragma comment( lib, "tinyxml.lib" )
00064 # endif
00065
00066 # endif // defined(TINYXML_MOD)
00067
00068 # define OT_DOMDOCUMENT TiXmlDocument
00069 # define OT_DOMELEMENT TiXmlElement
00070
00071 #else
00072 #if defined (WIN32)
00073 #pragma message("compiling against XERCESC")
00074 #endif
00075 #include <xercesc/dom/DOM.hpp>
00076 #define OT_DOMDOCUMENT XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument
00077 #define OT_DOMELEMENT XERCES_CPP_NAMESPACE_QUALIFIER DOMElement
00078 #ifndef USE_XERCES
00079 #define USE_XERCES 1
00080 #endif
00081 #ifdef WIN32
00082 #ifdef _DEBUG
00083 #pragma comment( lib, "xerces-c_2d.lib" )
00084 #else
00085 #pragma comment( lib, "xerces-c_2.lib" )
00086 #endif
00087 #endif
00088 #endif //USE_TINYXML
00089
00090
00091 #endif //__XML_SELECTION__
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107