Skip to content

Commit 9e6759a

Browse files
authored
Update C++ documentation (#1348)
Moved Installation instructions from README.md to GettingStartedGuide Moved "Build the SDK" section from README.md to GettingStartedGuide Moved "Why Use" topic to Introduction (in GitLab) Added Table of Contents Added the reference link in README Changed outdated platform URLs to actual ones Relates-To: TECHDOCS-1227 Signed-off-by: Nataliia Plakhtii <[email protected]>
1 parent 286d025 commit 9e6759a

File tree

2 files changed

+50
-33
lines changed

2 files changed

+50
-33
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
HERE Data SDK for C++ is a C++ client for the <a href="https://platform.here.com" target="_blank">HERE platform</a>.
44

5+
## Use the SDK
6+
7+
To learn how to install and use the Data SDK, see the <a href="https://github.com/heremaps/here-data-sdk-cpp/blob/master/docs/GettingStartedGuide.md" target="_blank">Getting Started Guide</a> and <a href="https://developer.here.com/documentation/sdk-cpp/dev_guide/index.html" target="blank">Developer Guide</a>.
8+
59
## Health check
610

711
### Build and test
@@ -37,7 +41,7 @@ For more information on Data API, see its <a href="https://developer.here.com/do
3741

3842
When new API is introduced in Data SDK for C++, the old one is not deleted straight away. The standard API deprecation time is 6 months. It gives you time to switch to new code. However, we do not provide ABI backward compatibility.
3943

40-
All of the deprecated methods, functions, and parameters are documented in the Data SDK for C++ <a href="https://developer.here.com/documentation/sdk-cpp/api_reference/index.html" target="_blank">API Reference</a> and <a href="https://github.com/heremaps/here-data-sdk-cpp/blob/master/CHANGELOG.md" target="_blank">changelog</a>.
44+
Learn more about deprecated methods, functions, and parameters in the Data SDK for C++ <a href="https://developer.here.com/documentation/sdk-cpp/api_reference/index.html" target="_blank">API Reference</a> and <a href="https://github.com/heremaps/here-data-sdk-cpp/blob/master/CHANGELOG.md" target="_blank">changelog</a>.
4145

4246
For more information on Data SDK for C++, see our <a href="https://developer.here.com/documentation/sdk-cpp/dev_guide/index.html" target="blank">Developer Guide</a>.
4347

@@ -69,6 +73,8 @@ The table below lists the dependencies of the Data SDK.
6973
| Snappy | 1.1.7 |
7074
| RapidJSON | latest |
7175

76+
### Linux dependencies
77+
7278
To install the dependencies on Linux, run the following command:
7379

7480
```bash
@@ -78,10 +84,6 @@ sudo apt-get update && sudo apt-get --yes install git g++ make cmake libssl-dev
7884
> #### Note
7985
> Please note that on some Linux distribution, the default libcurl version can be lower than the required v7.52.0. In that case, you need to install the required libcurl version from a different PPA.
8086
81-
## Use the SDK
82-
83-
To learn how to use the Data SDK, see the <a href="https://github.com/heremaps/here-data-sdk-cpp/blob/master/docs/GettingStartedGuide.md" target="_blank">Getting Started Guide</a>, <a href="https://developer.here.com/documentation/sdk-cpp/dev_guide/index.html" target="blank">Developer Guide</a>, and <a href="https://developer.here.com/documentation/sdk-cpp/api_reference/index.html" target="_blank">API Reference</a>.
84-
8587
## Contribution
8688

8789
For details, see <a href="https://github.com/heremaps/here-data-sdk-cpp/blob/master/CONTRIBUTING.md" target="_blank">HERE Data SDK C++ Contributors Guide</a>.

docs/GettingStartedGuide.md

Lines changed: 43 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Getting Started Guide
22

3+
In this guide, learn how to authenticate to and start working with the HERE platform using the Data SDK:
4+
5+
- [Prerequisites](#prerequisites)
6+
- [Concepts](#concepts)
7+
- [Get credentials](#get-credentials)
8+
- [Install the SDK](#install-the-sdk)
9+
- [Build the SDK](#build-the-sdk)
10+
- [Build on Windows](#build-on-windows)
11+
- [Generate documentation with Doxygen](#generate-documentation-with-doxygen)
12+
- [CMake flags](#cmake-flags)
13+
- [Available components](#available-components)
14+
- [HERE Data SDK for C++ in CMake projects](#here-data-sdk-for-c-in-cmake-projects)
15+
- [Reference documentation](#reference-documentation)
16+
- [Examples](#examples)
17+
318
## Prerequisites
419

520
To start using HERE Data SDK for C++, you need a platform user account.
@@ -38,7 +53,7 @@ You can use the Data SDK in your CMake project or install it on your system.
3853

3954
**To install the Data SDK on your system:**
4055

41-
1. Install all the dependencies needed for the Data SDK.<br>For more information on dependencies, see the [Dependencies](#dependencies) and [Additional Linux dependencies](#additional-linux-dependencies) sections.
56+
1. Install all the dependencies needed for the Data SDK.<br>For more information on dependencies, see the [Dependencies](../README.md#dependencies) and [Linux dependencies](../README.md#linux-dependencies) sections in the README.md file.
4257

4358
2. (Optional) To find the required dependencies in the system, set the `OLP_SDK_BUILD_EXTERNAL_DEPS` flag to `OFF`.
4459

@@ -92,32 +107,6 @@ We assume that you have installed CMake, Microsoft Visual Studio 2017, and the V
92107
> #### Note
93108
> Microsoft Visual Studio uses a default build directory that has a long path name. Since dependencies for the Data SDK are installed within the build directory, it is recommended that you edit the generated `CMakeSettings.json` file and change the build directory path name to a shorter path name. This ensures that the maximum length of each path is not greater than 260 characters. For details, see the <a href="https://docs.microsoft.com/en-us/windows/desktop/fileio/naming-a-file" target="_blank">Naming Files, Paths, and Namespaces</a> section of the Windows Dev Center documentation.
94109
95-
## Available components
96-
97-
Data SDK for C++ contains separate libraries, each of which has a distinct functionality. For more information about the components, see the [architectural overview](OverallArchitecture.md).
98-
99-
## HERE Data SDK for C++ in CMake projects
100-
101-
Once the libraries are installed, you can find them using the `find_package()` function within your project. For more information on how to install libraries, see [the related section](../README.md#install-the-sdk) in the README.md file.
102-
103-
```CMake
104-
find_package(olp-cpp-sdk-core REQUIRED)
105-
find_package(olp-cpp-sdk-authentication REQUIRED)
106-
find_package(olp-cpp-sdk-dataservice-read REQUIRED)
107-
find_package(olp-cpp-sdk-dataservice-write REQUIRED)
108-
```
109-
110-
Once the necessary targets are imported, you can link them to your library:
111-
112-
```CMake
113-
target_link_libraries(example_app
114-
olp-cpp-sdk-core
115-
olp-cpp-sdk-authentication
116-
olp-cpp-sdk-dataservice-read
117-
olp-cpp-sdk-dataservice-write
118-
)
119-
```
120-
121110
### Generate documentation with Doxygen
122111

123112
If you want to build documentation from annotated source code, you need to have <a href="http://www.doxygen.nl/" target="_blank">Doxygen</a> and CMake version 3.9 or later.
@@ -148,6 +137,32 @@ cmake --build . --target docs
148137
| `OLP_SDK_ENABLE_DEFAULT_CACHE_LMDB `| Defaults to `OFF`. If enabled, the default cache implementation based on the LMDB backend is enabled. |
149138
| `OLP_SDK_ENABLE_ANDROID_CURL`| Defaults to `OFF`. If enabled, libcurl will be used instead of the Android native HTTP client. |
150139

140+
## Available components
141+
142+
Data SDK for C++ contains separate libraries, each of which has a distinct functionality. For more information about the components, see the [architectural overview](OverallArchitecture.md).
143+
144+
## HERE Data SDK for C++ in CMake projects
145+
146+
When the libraries are installed, you can find them using the `find_package()` function within your project. For more information on how to install libraries, see [Install the SDK](#install-the-sdk).
147+
148+
```CMake
149+
find_package(olp-cpp-sdk-core REQUIRED)
150+
find_package(olp-cpp-sdk-authentication REQUIRED)
151+
find_package(olp-cpp-sdk-dataservice-read REQUIRED)
152+
find_package(olp-cpp-sdk-dataservice-write REQUIRED)
153+
```
154+
155+
Once the necessary targets are imported, you can link them to your library:
156+
157+
```CMake
158+
target_link_libraries(example_app
159+
olp-cpp-sdk-core
160+
olp-cpp-sdk-authentication
161+
olp-cpp-sdk-dataservice-read
162+
olp-cpp-sdk-dataservice-write
163+
)
164+
```
165+
151166
## Reference documentation
152167

153168
The API reference documentation for Data SDK for C++ is available on our [GitHub Pages](https://heremaps.github.io/here-data-sdk-cpp/).
@@ -159,4 +174,4 @@ HERE Data SDK for C++ contains several example programs that demonstrate some of
159174
- [Read example](dataservice-read-catalog-example.md) – demonstrates how to get catalog and partition metadata, as well as partition data.
160175
- [Read example for a stream layer](dataservice-read-from-stream-layer-example.md) – demonstrates how to get data from a stream layer.
161176
- [Cache example](dataservice-cache-example.md) – demonstrates how to get partition data and work with a mutable and protected cache.
162-
- [Write example](dataservice-write-example.md) – demonstrates how to publish data to OLP.
177+
- [Write example](dataservice-write-example.md) – demonstrates how to publish data to the HERE platform.

0 commit comments

Comments
 (0)