olp-cpp-sdk 1.24.0
Loading...
Searching...
No Matches
VersionInfos.h
1/*
2 * Copyright (C) 2020 HERE Europe B.V.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * SPDX-License-Identifier: Apache-2.0
17 * License-Filename: LICENSE
18 */
19
20#pragma once
21
22#include <map>
23#include <memory>
24#include <string>
25#include <utility>
26#include <vector>
27
28#include <olp/dataservice/read/DataServiceReadApi.h>
29#include <olp/dataservice/read/model/VersionInfo.h>
30
31namespace olp {
32namespace dataservice {
33namespace read {
34namespace model {
35
39class DATASERVICE_READ_API VersionInfos final {
40 public:
46 void SetVersions(std::vector<VersionInfo> versions) {
47 versions_ = std::move(versions);
48 }
49
55 const std::vector<VersionInfo>& GetVersions() const { return versions_; }
56
57 private:
58 std::vector<VersionInfo> versions_;
59};
60
61} // namespace model
62} // namespace read
63} // namespace dataservice
64} // namespace olp
A container for a list of version infos.
Definition VersionInfos.h:39
const std::vector< VersionInfo > & GetVersions() const
Gets the vector of version infos.
Definition VersionInfos.h:55
void SetVersions(std::vector< VersionInfo > versions)
Sets the vector of version infos.
Definition VersionInfos.h:46
Rules all the other namespaces.
Definition AppleSignInProperties.h:24