iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
configuration.hpp
Go to the documentation of this file.
1
// Copyright (c) 2023 by Apex.AI Inc. All rights reserved.
2
// Copyright (c) 2025 Contributors to the Eclipse Foundation
3
//
4
// See the NOTICE file(s) distributed with this work for additional
5
// information regarding copyright ownership.
6
//
7
// This program and the accompanying materials are made available under the
8
// terms of the Apache Software License 2.0 which is available at
9
// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license
10
// which is available at https://opensource.org/licenses/MIT.
11
//
12
// SPDX-License-Identifier: Apache-2.0 OR MIT
13
14
#ifndef IOX2_BB_REPORTING_ERROR_REPORTING_CONFIGURATION_HPP
15
#define IOX2_BB_REPORTING_ERROR_REPORTING_CONFIGURATION_HPP
16
17
#include <type_traits>
18
19
// ***
20
// * Configure active checks and other compile time parameters
21
// ***
22
23
namespace
iox2
{
24
namespace
legacy {
25
namespace
er {
26
27
// tag type that can be used to override the configuration in a custom implementation
28
struct
ConfigurationTag
{ };
29
30
// can be specialized here to change parameters at compile time
31
template
<
typename
T>
32
struct
ConfigurationParameters
{
33
static_assert
(std::is_same<T, ConfigurationTag>::value,
"Incorrect configuration tag type"
);
34
35
static
constexpr
bool
CHECK_ASSERT
{
true
};
36
};
37
38
// used by the API to obtain the compile time parameters
39
using
Configuration
=
ConfigurationParameters<ConfigurationTag>
;
40
41
}
// namespace er
42
}
// namespace legacy
43
}
// namespace iox2
44
45
#endif
// IOX2_BB_REPORTING_ERROR_REPORTING_CONFIGURATION_HPP
iox2
Definition
active_request.hpp:26
iox2::legacy::er::ConfigurationParameters< ConfigurationTag >
Definition
configuration.hpp:27
iox2::legacy::er::ConfigurationParameters
Definition
configuration.hpp:32
iox2::legacy::er::ConfigurationParameters::CHECK_ASSERT
static constexpr bool CHECK_ASSERT
Definition
configuration.hpp:35
iox2::legacy::er::ConfigurationTag
Definition
configuration.hpp:28
iox2
legacy
error_reporting
configuration.hpp
Generated by
1.9.8