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 #ifndef TINYXML_MOD
00008 #  include <tinyxml/tinyxml.h>
00009 #else
00010 #  include <TinyXML/tinyxml.h>
00011 #endif
00012 
00013 #  if defined(TINYXML_MOD)
00014 
00015 //   this is the modified TinyXML version modified by Daniel Wagner called TinyXML_Mod.
00016 //   Under Windows can either be linked statically or as DLL.
00017 
00018 #if defined (WIN32)
00019 #    pragma message("XMLSelection: compiling against TinyXML_Mod")
00020 #endif
00021 
00022 #    if defined(WIN32) || defined (_WIN32_WCE)
00023 #      ifdef TINYXML_MOD_STATIC
00024 
00025 
00026 #        if defined(_DEBUG) || defined(DEBUG)
00027 #          pragma message("XMLSelection: linking against static-version: TinyXML_ModLibd.lib")
00028 #          pragma comment( lib, "TinyXML_ModLibd.lib" )
00029 #        else
00030 #          pragma message("XMLSelection: linking against static-version: TinyXML_ModLib.lib")
00031 #          pragma comment( lib, "TinyXML_ModLib.lib" )
00032 #        endif 
00033 
00034 #      elif defined(TINYXML_MOD_DLL)
00035 
00036 //       this is the dynamic linking version of the TinyXML library
00037 //       modified by Daniel Wagner
00038 
00039 #        if defined(_DEBUG) || defined(DEBUG)
00040 #          pragma message("XMLSelection: linking against DLL-version: TinyXML_Modd.lib")
00041 #          pragma comment( lib, "TinyXML_Modd.lib" )
00042 #        else
00043 #          pragma message("XMLSelection: linking against DLL-version: TinyXML_Mod.lib")
00044 #          pragma comment( lib, "TinyXML_Mod.lib" )
00045 #        endif 
00046 
00047 #      else  
00048 
00049 #        pragma message("XMLSelection: TinyXML_Mod must be linked either static or dynamic.")
00050 #        pragma message("              Please define either TINYXML_MOD_STATIC or TINYXML_MOD_DLL")
00051 #        pragma error
00052 
00053 #      endif  
00054 
00055 #    endif  //defined(WIN32) || defined (_WIN32_WCE)
00056 
00057 #  else                 // defined(TINYXML_MOD)
00058 
00059 //   this is the default version of the TinyXML library
00060 #    pragma message("XMLSelection: compiling against standard TinyXML")
00061 
00062 #    if defined(_DEBUG) || defined(DEBUG)
00063 #      pragma message("XMLSelection: linking against tinyxmld.lib")
00064 #      pragma comment( lib, "tinyxml.lib" )
00065 #    else
00066 #      pragma message("XMLSelection: linking against tinyxml.lib")
00067 #      pragma comment( lib, "tinyxml.lib" )
00068 #    endif 
00069 
00070 #  endif                // defined(TINYXML_MOD)
00071 
00072 #  define OT_DOMDOCUMENT TiXmlDocument
00073 #  define OT_DOMELEMENT TiXmlElement
00074 
00075 #else
00076 #if defined (WIN32)
00077 #pragma message("compiling against XERCESC")
00078 #endif
00079 #include <xercesc/dom/DOM.hpp>
00080 #define OT_DOMDOCUMENT XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument
00081 #define OT_DOMELEMENT XERCES_CPP_NAMESPACE_QUALIFIER DOMElement
00082 #ifndef USE_XERCES
00083 #define USE_XERCES 1
00084 #endif
00085 #ifdef WIN32
00086 #ifdef _DEBUG
00087 #pragma comment( lib, "xerces-c_2d.lib" )
00088 #else
00089 #pragma comment( lib, "xerces-c_2.lib" )
00090 #endif 
00091 #endif
00092 #endif //USE_TINYXML
00093 
00094 
00095 #endif //__XML_SELECTION__
00096 
00097 /* 
00098  * ------------------------------------------------------------
00099  *   End of XMLSelection.h
00100  * ------------------------------------------------------------
00101  *   Automatic Emacs configuration follows.
00102  *   Local Variables:
00103  *   mode:c++
00104  *   c-basic-offset: 4
00105  *   eval: (c-set-offset 'substatement-open 0)
00106  *   eval: (c-set-offset 'case-label '+)
00107  *   eval: (c-set-offset 'statement 'c-lineup-runin-statements)
00108  *   eval: (setq indent-tabs-mode nil)
00109  *   End:
00110  * ------------------------------------------------------------ 
00111  */

Generated on Wed Feb 28 15:18:51 2007 for NaviTrack by  doxygen 1.4.6