GDAL

- Main Page
- Related Pages
- Classes
- Files
- Download
- Issue Tracker

- File List
- File Members

ogr_xerces.h
1 /******************************************************************************
2 * Project: OGR
3 * Purpose: Convenience functions for parsing with Xerces-C library
4 * Author: Even Rouault, <even.rouault at spatialys.com>
5 *
6 ******************************************************************************
7 * Copyright (c) 2016, Even Rouault <even.rouault at spatialys.com>
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25 * DEALINGS IN THE SOFTWARE.
26 ****************************************************************************/
27
28 #ifndef OGR_XERCES_INCLUDED
29 #define OGR_XERCES_INCLUDED
30
31 // Must be first for DEBUG_BOOL case
32 #ifdef HAVE_XERCES
33 #include "ogr_xerces_headers.h"
34 #endif
35
36 #include "cpl_port.h"
37 #include "cpl_string.h"
38
39 #ifdef HAVE_XERCES
40
41 /* All those functions are for in-tree drivers use only ! */
42
43 /* Thread-safe initialization/de-initialization. Calls should be paired */
44 bool CPL_DLL OGRInitializeXerces(void);
45 void CPL_DLL OGRDeinitializeXerces(void);
46
47 namespace OGR
48 {
49 CPLString CPL_DLL transcode( const XMLCh *panXMLString, int nLimitingChars = -1 );
50 CPLString CPL_DLL &transcode( const XMLCh *panXMLString, CPLString& osRet,
51 int nLimitingChars = -1 );
52 }
53
54 #ifndef OGR_USING
55 using OGR::transcode;
56 #endif
57
58 #endif /* HAVE_XERCES */
59
60 void OGRCleanupXercesMutex(void);
61
62 #endif /* OGR_XERCES_INCLUDED */
cpl_port.h
Core portability definitions for CPL.
CPLString
Convenient string class based on std::string.
Definition: cpl_string.h:338
cpl_string.h
Various convenience functions for working with strings and string lists.

Generated for GDAL by 1.8.9.1.