summaryrefslogtreecommitdiff
path: root/implementation/configuration/include/e2e.hpp
blob: 8345c2a94456c33dd9fb8e5a22d24327146b373f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Copyright (C) 2014-2021 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

#ifndef VSOMEIP_V3_CFG_E2E_HPP_
#define VSOMEIP_V3_CFG_E2E_HPP_

#include <map>
#include <string>
#include <vector>

#include <vsomeip/primitive_types.hpp>

namespace vsomeip_v3 {
namespace cfg {

struct e2e {
    using custom_parameters_t = std::map<std::string, std::string, std::less<>>;

    e2e() :
        variant(""),
        profile(""),
        service_id(0),
        event_id(0) {
    }

    e2e(const std::string &_variant, const std::string &_profile, service_t _service_id,
        event_t _event_id, custom_parameters_t&& _custom_parameters) :
        variant(_variant),
        profile(_profile),
        service_id(_service_id),
        event_id(_event_id),
        custom_parameters(_custom_parameters) {
    }

    // common config
    std::string variant;
    std::string profile;
    service_t service_id;
    event_t event_id;

    // custom parameters
    custom_parameters_t custom_parameters;
};

} // namespace cfg
} // namespace vsomeip_v3

#endif // VSOMEIP_V3_CFG_E2E_HPP_