GDAL
ogr_xerces.h
00001 /******************************************************************************
00002  * Project:  OGR
00003  * Purpose:  Convenience functions for parsing with Xerces-C library
00004  * Author:   Even Rouault, <even.rouault at spatialys.com>
00005  *
00006  ******************************************************************************
00007  * Copyright (c) 2016, Even Rouault <even.rouault at spatialys.com>
00008  *
00009  * Permission is hereby granted, free of charge, to any person obtaining a
00010  * copy of this software and associated documentation files (the "Software"),
00011  * to deal in the Software without restriction, including without limitation
00012  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
00013  * and/or sell copies of the Software, and to permit persons to whom the
00014  * Software is furnished to do so, subject to the following conditions:
00015  *
00016  * The above copyright notice and this permission notice shall be included
00017  * in all copies or substantial portions of the Software.
00018  *
00019  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00020  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00021  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
00022  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00023  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00024  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00025  * DEALINGS IN THE SOFTWARE.
00026  ****************************************************************************/
00027 
00028 #ifndef OGR_XERCES_INCLUDED
00029 #define OGR_XERCES_INCLUDED
00030 
00031 // Must be first for DEBUG_BOOL case
00032 #ifdef HAVE_XERCES
00033 #include "ogr_xerces_headers.h"
00034 #endif
00035 
00036 #include "cpl_port.h"
00037 #include "cpl_string.h"
00038 
00039 #ifdef HAVE_XERCES
00040 
00041 /* All those functions are for in-tree drivers use only ! */
00042 
00043 /* Thread-safe initialization/de-initialization. Calls should be paired */
00044 bool CPL_DLL OGRInitializeXerces(void);
00045 void CPL_DLL OGRDeinitializeXerces(void);
00046 
00047 namespace OGR
00048 {
00049 CPLString CPL_DLL transcode( const XMLCh *panXMLString, int nLimitingChars = -1 );
00050 CPLString CPL_DLL &transcode( const XMLCh *panXMLString, CPLString& osRet,
00051                               int nLimitingChars = -1 );
00052 }
00053 
00054 #ifndef OGR_USING
00055 using OGR::transcode;
00056 #endif
00057 
00058 #endif /* HAVE_XERCES */
00059 
00060 void OGRCleanupXercesMutex(void);
00061 
00062 #endif /* OGR_XERCES_INCLUDED */

Generated for GDAL by doxygen 1.7.6.1.