Skip to content

Commit 5968d92

Browse files
committed
Initial commit
0 parents  commit 5968d92

File tree

570 files changed

+79423
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

570 files changed

+79423
-0
lines changed

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BasedOnStyle: Google

.gitignore

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
CMakeCache.txt
2+
CMakeFiles
3+
Makefile
4+
cmake_install.cmake
5+
install_manifest.txt
6+
CMakeLists.txt.user
7+
build*
8+
*.doap
9+
scripts
10+
.repo
11+
12+
# Compiled Object files
13+
*.slo
14+
*.lo
15+
*.o
16+
17+
# Compiled Dynamic libraries
18+
*.so
19+
*.dylib
20+
21+
# Compiled Static libraries
22+
*.lai
23+
*.la
24+
*.a
25+
26+
27+
# vim backup files
28+
*.swp
29+
*~
30+
*.tmp
31+
32+
# MacOS
33+
.DS_Store
34+
35+
# files generated by cmake on Windows
36+
*.filters
37+
*.vcxproj
38+
*.sln
39+
*.sdf
40+
*.opensdf
41+
*.suo
42+
*.dir
43+
header_*.cpp
44+
Doxyfile
45+
CTestTestfile.cmake
46+
[Dd]ebug/
47+
html/
48+
49+
# Visual Studio Code
50+
.vscode/
51+
52+
# Visual Studio
53+
.vs/
54+
CMakeSettings.json

.ort.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
excludes:
3+
projects:
4+
- path: ".*build\\.gradle"
5+
reason: "TEST_TOOL_OF"
6+
comment: "This project contains tests which are not distributed"

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## v0.6.0-beta (27/06/2019)
2+
Initial open source release as a _work in progress_ beta.
3+
<br />Not all OLP features are implemented, API breaks very likely with following commits and releases.
4+
5+
**olp-edge-sdk-cpp-authentication**
6+
7+
* Sign up new user with e-mail and password.
8+
* Sign up new user with Facebook, Google, ArcGIS credentials.
9+
* Accept terms and log out user.
10+
* AAA OAuth2 with registered user credentials.
11+
12+
**olp-edge-sdk-cpp-dataservice-read**
13+
14+
* Read from Catalog (configuration, layers).
15+
* Read from Versioned Layer (partitions metadata, partition data).
16+
* Read from Volatile Layer (partitions metadata, partition data).
17+
* Cache results on disk for later use.
18+
19+
**olp-edge-sdk-cpp-dataservice-write**
20+
21+
* Write to Versioned Layer (initialize publication, upload data and metadata, submit publication).
22+
* Write to Volatile Layer (initialize publication, upload metadata, submit publication, upload data).
23+
* Write to Stream Layer (publish data, queue data for asyncronous publish, publish SDII messages, batch write).
24+
* Write to Index Layer (publish index, delete index, update index).

CMakeLists.txt

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Copyright (C) 2019 HERE Europe B.V.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# SPDX-License-Identifier: Apache-2.0
16+
# License-Filename: LICENSE
17+
18+
cmake_minimum_required(VERSION 3.5)
19+
20+
# Options
21+
option(EDGE_SDK_ENABLE_TESTING "Flag to enable/disable building unit and integration tests" ON)
22+
option(EDGE_SDK_BUILD_DOC "Build SDK documentation" OFF)
23+
option(EDGE_SDK_NO_EXCEPTION "Turn off EXCEPTION" OFF)
24+
option(EDGE_SDK_BUILD_EXTERNAL_DEPS "Download and build external dependencies" ON)
25+
option(EDGE_SDK_BUILD_EXAMPLES "Enable examples targets" OFF)
26+
27+
# C++ standard version. Minimum supported version is 11.
28+
set(CMAKE_CXX_STANDARD 11)
29+
30+
# Set no exception
31+
if (EDGE_SDK_NO_EXCEPTION)
32+
set(CMAKE_CXX_FLAGS "-fno-exceptions ${CMAKE_CXX_FLAGS}")
33+
set(CMAKE_C_FLAGS "-fno-exceptions ${CMAKE_C_FLAGS}")
34+
endif()
35+
36+
# Add cmake dir to search list
37+
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
38+
39+
# build the sdk targets
40+
project("olp-cpp-sdk" VERSION 0.6.0)
41+
42+
if (WIN32)
43+
# For Wins we disable auto linking name manging as it causes linker errors
44+
add_definitions(-DBOOST_AUTO_LINK_NOMANGLE)
45+
set(Boost_USE_STATIC_LIBS ON)
46+
endif()
47+
48+
# Save root sdk folder path
49+
get_filename_component(OLP_CPP_SDK_ROOT "${CMAKE_CURRENT_SOURCE_DIR}" ABSOLUTE)
50+
51+
# Include common scripts
52+
include(common)
53+
54+
# Include code coverage variables
55+
include(coverage)
56+
57+
if(EDGE_SDK_BUILD_EXTERNAL_DEPS)
58+
# Add third-party dependencies
59+
add_subdirectory(external)
60+
endif()
61+
62+
# Include testutils
63+
add_subdirectory(testutils/custom-params)
64+
65+
# Add the sdks
66+
add_sdks()
67+
68+
# Add docs
69+
add_subdirectory(docs)
70+
71+
# Add example
72+
if(EDGE_SDK_BUILD_EXAMPLES)
73+
add_subdirectory(examples/dataservice-read)
74+
add_subdirectory(examples/dataservice-write)
75+
endif()
76+
77+
# Add uninstall script
78+
add_custom_target(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_MODULE_PATH}/uninstall.cmake")
79+

0 commit comments

Comments
 (0)