Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
platform
Helpers
JsonHelpers.h
1
#pragma once
2
3
#include "document.h"
4
#include <string>
5
6
7
namespace
Eegeo
8
{
9
namespace
Helpers
10
{
11
namespace
JsonHelpers
12
{
13
14
bool
TryGetInt(
const
rapidjson::Value& json,
const
char
* key,
int
& out_value);
15
bool
TryGetString(
const
rapidjson::Value& json,
const
char
* key, std::string& out_value);
16
bool
TryGetDouble(
const
rapidjson::Value& json,
const
char
* key,
double
& out_value);
17
bool
TryGetBool(
const
rapidjson::Value& json,
const
char
* key,
bool
& out_value);
18
19
int
GetIntDefault(
const
rapidjson::Value& json,
const
char
* key,
const
int
defaultValue=0);
20
std::string GetStringDefault(
const
rapidjson::Value& json,
const
char
* key,
const
std::string& defaultValue=
""
);
21
double
GetDoubleDefault(
const
rapidjson::Value& json,
const
char
* key,
const
double
defaultValue=0.0);
22
bool
GetBoolDefault(
const
rapidjson::Value& json,
const
char
* key,
const
bool
defaultValue=
false
);
23
}
24
}
25
}
26
Generated on Sat Jun 10 2023 02:00:30 for eeGeo Platform SDK by
1.8.3.1