Skip to content

Commit 3bfbc6c

Browse files
committed
Partial cplusplus'ification of mapogcfiltercommon
1 parent ef4c443 commit 3bfbc6c

File tree

3 files changed

+99
-155
lines changed

3 files changed

+99
-155
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ maptree.c mapdebug.c maplexer.c mapquantization.c mapunion.c
263263
mapdraw.c maplibxml2.c mapquery.c maputil.c strptime.c mapdrawgdal.c
264264
mapraster.c mapuvraster.c mapdummyrenderer.c mapobject.c maprasterquery.c
265265
mapwcs.c maperror.c mapogcfilter.c mapregex.c mapwcs11.c mapfile.c
266-
mapogcfiltercommon.c maprendering.c mapwcs20.c mapogcsld.c mapmetadata.c
266+
mapogcfiltercommon.cpp maprendering.c mapwcs20.c mapogcsld.c mapmetadata.c
267267
mapresample.c mapwfs.c mapgdal.c mapogcsos.c mapscale.c mapwfs11.c mapwfs20.c
268268
mapgeomtransform.c mapogroutput.c mapwfslayer.c mapagg.cpp mapkml.cpp
269269
mapgeomutil.cpp mapkmlrenderer.cpp fontcache.c textlayout.c maputfgrid.cpp

mapogcfilter.h

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@
3131

3232
#include "mapserver.h"
3333

34-
/*dont need ogr for these functikons*/
35-
MS_DLL_EXPORT int FLTIsNumeric(const char *pszValue);
36-
MS_DLL_EXPORT int FLTApplyExpressionToLayer(layerObj *lp, const char *pszExpression);
37-
MS_DLL_EXPORT char *FLTGetExpressionForValuesRanges(layerObj *lp, const char *item, const char *value, int forcecharcter);
38-
3934
#ifdef USE_OGR
4035

4136
/* There is a dependency to OGR for the MiniXML parser */
@@ -47,6 +42,9 @@ MS_DLL_EXPORT char *FLTGetExpressionForValuesRanges(layerObj *lp, const char *i
4742
#include<libxml/tree.h>
4843
#endif
4944

45+
#ifdef __cplusplus
46+
extern "C" {
47+
#endif
5048

5149
typedef struct {
5250
char *pszWildCard;
@@ -58,6 +56,10 @@ typedef struct {
5856
/* -------------------------------------------------------------------- */
5957
/* prototypes. */
6058
/* -------------------------------------------------------------------- */
59+
MS_DLL_EXPORT int FLTIsNumeric(const char *pszValue);
60+
MS_DLL_EXPORT int FLTApplyExpressionToLayer(layerObj *lp, const char *pszExpression);
61+
MS_DLL_EXPORT char *FLTGetExpressionForValuesRanges(layerObj *lp, const char *item, const char *value, int forcecharcter);
62+
6163
MS_DLL_EXPORT FilterEncodingNode *FLTParseFilterEncoding(const char *szXMLString);
6264
MS_DLL_EXPORT FilterEncodingNode *FLTCreateFilterEncodingNode(void);
6365
MS_DLL_EXPORT char** FLTSplitFilters(const char* pszStr, int* pnTokens);
@@ -145,6 +147,10 @@ int FLTApplyFilterToLayerCommonExpressionWithRect(mapObj *map, int iLayerIndex,
145147
int FLTProcessPropertyIsNull(FilterEncodingNode *psFilterNode,
146148
mapObj *map, int i);
147149

150+
#ifdef __cplusplus
151+
}
152+
#endif
153+
148154
#endif
149155

150156

0 commit comments

Comments
 (0)