yasmine
json_parser_helper.hpp
Go to the documentation of this file.
1 // //
3 // This file is part of the Seadex yasmine ecosystem (http://yasmine.seadex.de). //
4 // Copyright (C) 2016-2017 Seadex GmbH //
5 // //
6 // Licensing information is available in the folder "license" which is part of this distribution. //
7 // The same information is available on the www @ http://yasmine.seadex.de/Licenses.html. //
8 // //
10 
11 #ifndef JSON_PARSER_HELPER_A98B95E7_1604_4778_92B0_A3C11BF6EF82
12 #define JSON_PARSER_HELPER_A98B95E7_1604_4778_92B0_A3C11BF6EF82
13 
14 
15 #include <vector>
16 
17 #include "document.h"
18 
19 #include "essentials/compatibility/compatibility.hpp"
20 
21 
22 namespace sxy
23 {
24 
25 
26 std::string get_object_member_string( const rapidjson::Value& _obj, const char* const _name_of_member );
27 sxe::int64_t get_object_member_int( const rapidjson::Value& _obj, const char* const _name_of_member );
28 const rapidjson::Value& get_object_member_array( const rapidjson::Value& _obj, const char* const _name_of_member );
29 std::vector< const rapidjson::Value* > extract_members_from_array( const rapidjson::Value& _array );
30 void string_to_json( const char* const _json_as_string, rapidjson::Document& _document );
31 const rapidjson::Value& find_member( const rapidjson::Value& _member, const char* const _name );
32 const rapidjson::Value& find_object_member( const rapidjson::Value& _document, const char* const _name );
33 
34 
35 }
36 
37 
38 #endif
const rapidjson::Value & find_member(const rapidjson::Value &_member, const char *const _name)
Definition: json_parser_helper.cpp:109
void string_to_json(const char *const _json_as_string, rapidjson::Document &_document)
Definition: json_parser_helper.cpp:103
Definition: algorithm_parameters.hpp:16
sxe::int64_t get_object_member_int(const rapidjson::Value &_obj, const char *const _name_of_member)
Definition: json_parser_helper.cpp:40
std::vector< const rapidjson::Value *> extract_members_from_array(const rapidjson::Value &_array)
Definition: json_parser_helper.cpp:88
const rapidjson::Value & find_object_member(const rapidjson::Value &_document, const char *const _name)
Definition: json_parser_helper.cpp:127
const rapidjson::Value & get_object_member_array(const rapidjson::Value &_obj, const char *const _name_of_member)
Definition: json_parser_helper.cpp:60
std::string get_object_member_string(const rapidjson::Value &_obj, const char *const _name_of_member)
Definition: json_parser_helper.cpp:20