Skip to content

Commit 9dd546d

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 9dd546d

19 files changed

+81
-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/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,9 @@ if (OLP_SDK_NO_EXCEPTION AND NOT OLP_SDK_BOOST_THROW_EXCEPTION_EXTERNAL)
436436
PRIVATE OLP_SDK_BOOST_THROW_EXCEPTION=1)
437437
endif()
438438

439+
target_compile_definitions(${PROJECT_NAME}
440+
PRIVATE BOOST_ALL_NO_LIB)
441+
439442
target_include_directories(${PROJECT_NAME} PUBLIC
440443
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
441444
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>

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)