23 #include "wxgis/core/core.h"
24 #include "wxgis/core/json/jsonval.h"
26 #include <wx/xml/xml.h>
31 WXDLLIMPEXP_GIS_CORE wxString DoubleToString(
double dVal,
bool bIsLon);
35 WXDLLIMPEXP_GIS_CORE
double StringToDouble(
const wxString &sVal,
const wxString &sAsterisk);
37 WXDLLIMPEXP_GIS_CORE
void SetFloatValue(wxXmlNode* pNode,
const wxString &sAttrName,
double dfVal);
38 WXDLLIMPEXP_GIS_CORE
void SetFloatValue(wxXmlNode* pNode,
const wxString &sAttrName,
float dfVal);
39 WXDLLIMPEXP_GIS_CORE
double GetFloatValue(
const wxXmlNode* pNode,
const wxString &sAttrName,
double dfDefVal);
40 WXDLLIMPEXP_GIS_CORE
float GetFloatValue(
const wxXmlNode* pNode,
const wxString &sAttrName,
float dfDefVal);
41 WXDLLIMPEXP_GIS_CORE
void SetDateValue(wxXmlNode* pNode,
const wxString &sAttrName,
const wxDateTime &dtVal);
42 WXDLLIMPEXP_GIS_CORE
wxJSONValue SetDateValue(
const wxDateTime &dtVal);
43 WXDLLIMPEXP_GIS_CORE wxDateTime GetDateValue(
const wxXmlNode* pNode,
const wxString &sAttrName,
const wxDateTime &dtDefVal);
44 WXDLLIMPEXP_GIS_CORE wxDateTime GetDateValue(
const wxJSONValue &val,
const wxString &sAttrName,
const wxDateTime &dtDefVal);
45 WXDLLIMPEXP_GIS_CORE
void SetBoolValue(wxXmlNode* pNode,
const wxString &sAttrName,
bool bVal);
46 WXDLLIMPEXP_GIS_CORE
bool GetBoolValue(
const wxXmlNode* pNode,
const wxString &sAttrName,
bool bDefVal);
47 WXDLLIMPEXP_GIS_CORE
void SetDecimalValue(wxXmlNode* pNode,
const wxString &sAttrName,
long nVal);
48 WXDLLIMPEXP_GIS_CORE
void SetDecimalValue(wxXmlNode* pNode,
const wxString &sAttrName,
int nVal);
49 WXDLLIMPEXP_GIS_CORE
long GetDecimalValue(
const wxXmlNode* pNode,
const wxString &sAttrName,
long nDefVal);
50 WXDLLIMPEXP_GIS_CORE
int GetDecimalValue(
const wxXmlNode* pNode,
const wxString &sAttrName,
int nDefVal);
52 WXDLLIMPEXP_GIS_CORE
void FloatStringToCLoc(wxString & str);
53 WXDLLIMPEXP_GIS_CORE
void FloatStringFromCLoc(wxString & str);
55 WXDLLIMPEXP_GIS_CORE
int GetDecimalValue(
const wxXmlNode* pNode,
const wxString &sAttrName,
int nDefVal);
57 WXDLLIMPEXP_GIS_CORE wxString GetSubString(
const wxString &sInputString,
const wxString &sBegin,
const wxString &sEnd,
bool bAppendBegin =
false);
58 WXDLLIMPEXP_GIS_CORE wxString DecodeHTMLEntities(
const wxString &sSrc);
64 WXDLLIMPEXP_GIS_CORE wxString NumberScale(
double dScaleRatio);
75 virtual wxString Format(
double dX,
double dY);
76 virtual bool IsOk(
void){
return m_bIsOk;};
77 virtual void Create(
const wxString &sMask,
bool bSwap =
false);
78 virtual wxString GetMask()
const {
return m_sMask;};
80 typedef enum coord_format {
89 wxString FormatToken(
int nValHigh,
int nValLow);
90 wxString FormatString(
double dCoord,
const wxString &sFormat, COORD_FORMAT nCoordFormat,
bool bLat);
91 wxString ParseString(
const wxString &sMask, COORD_FORMAT* pCoordFormat);
96 wxString m_sFormatX, m_sFormatY, m_sDivider;
97 COORD_FORMAT m_CoordFormatX, m_CoordFormatY;
The JSON value class implementation.
Definition: jsonval.h:91