Skip to content

Commit c7e4b7e

Browse files
Switch to Boost.JSON
Complete overhaul Relates-To: DATASDK-58 Signed-off-by: Andrey Kashcheev <ext-andrey.kashcheev@here.com>
1 parent 1c59ee6 commit c7e4b7e

File tree

19 files changed

+80
-78
lines changed

19 files changed

+80
-78
lines changed

external/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ if(OLP_SDK_ENABLE_DEFAULT_CACHE_LMDB)
8888
endif()
8989
endif()
9090

91-
find_package(Boost QUIET)
91+
find_package(Boost 1.82.0 QUIET)
9292
if(NOT TARGET Boost AND NOT Boost_FOUND)
9393
add_subdirectory(boost)
9494
set(BOOST_ROOT ${EXTERNAL_BOOST_ROOT} PARENT_SCOPE)

olp-cpp-sdk-core/src/utils/BoostJsonSrc.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@
1717
* License-Filename: LICENSE
1818
*/
1919

20+
#define BOOST_CONTAINER_NO_LIB
21+
2022
#include <boost/json/src.hpp>

olp-cpp-sdk-dataservice-read/src/generated/parser/CatalogParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace olp {
2525
namespace parser {
26-
using namespace olp::dataservice::read;
26+
namespace model = olp::dataservice::read::model;
2727

2828
void from_json(const boost::json::value& value, model::Coverage& x) {
2929
x.SetAdminAreas(parse<std::vector<std::string>>(value, "adminAreas"));

olp-cpp-sdk-dataservice-read/src/generated/parser/IndexParser.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323

2424
namespace olp {
2525
namespace parser {
26-
using namespace olp::dataservice::read;
26+
27+
namespace model = olp::dataservice::read::model;
2728

2829
void from_json(const boost::json::value& value,
2930
std::shared_ptr<model::SubQuad>& x) {

olp-cpp-sdk-dataservice-read/src/generated/parser/LayerVersionsParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace olp {
2525
namespace parser {
26-
using namespace olp::dataservice::read;
26+
namespace model = olp::dataservice::read::model;
2727

2828
void from_json(const boost::json::value& value, model::LayerVersion& x) {
2929
x.SetLayer(parse<std::string>(value, "layer"));

olp-cpp-sdk-dataservice-read/src/generated/parser/MessagesParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
namespace olp {
2828
namespace parser {
29-
using namespace olp::dataservice::read;
29+
namespace model = olp::dataservice::read::model;
3030

3131
void from_json(const boost::json::value& value, model::Metadata& x) {
3232
x.SetPartition(parse<std::string>(value, "partition"));

olp-cpp-sdk-dataservice-read/src/generated/parser/PartitionsParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace olp {
2525
namespace parser {
26-
using namespace olp::dataservice::read;
26+
namespace model = olp::dataservice::read::model;
2727

2828
void from_json(const boost::json::value& value, model::Partition& x) {
2929
x.SetChecksum(parse<boost::optional<std::string>>(value, "checksum"));

olp-cpp-sdk-dataservice-read/src/generated/parser/StreamOffsetParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace olp {
2525
namespace parser {
26-
using namespace olp::dataservice::read;
26+
namespace model = olp::dataservice::read::model;
2727

2828
void from_json(const boost::json::value& value, model::StreamOffset& x) {
2929
x.SetPartition(parse<int32_t>(value, "partition"));

olp-cpp-sdk-dataservice-read/src/generated/parser/SubscribeResponseParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace olp {
2525
namespace parser {
26-
using namespace olp::dataservice::read;
26+
namespace model = olp::dataservice::read::model;
2727

2828
void from_json(const boost::json::value& value, model::SubscribeResponse& x) {
2929
x.SetNodeBaseURL(parse<std::string>(value, "nodeBaseURL"));

olp-cpp-sdk-dataservice-read/src/generated/parser/VersionResponseParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace olp {
2525
namespace parser {
26-
using namespace olp::dataservice::read;
26+
namespace model = olp::dataservice::read::model;
2727

2828
void from_json(const boost::json::value& value, model::VersionResponse& x) {
2929
x.SetVersion(parse<int64_t>(value, "version"));

0 commit comments

Comments
 (0)