Project
Loading...
Searching...
No Matches
ConfigurableParamTest.h
Go to the documentation of this file.
1
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
// All rights not expressly granted are reserved.
4
//
5
// This software is distributed under the terms of the GNU General Public
6
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
//
8
// In applying this license CERN does not waive the privileges and immunities
9
// granted to it by virtue of its status as an Intergovernmental Organization
10
// or submit itself to any jurisdiction.
11
12
#ifndef COMMON_CONFIGURABLE_PARAM_TEST_H_
13
#define COMMON_CONFIGURABLE_PARAM_TEST_H_
14
15
#include "
CommonUtils/ConfigurableParam.h
"
16
#include "
CommonUtils/ConfigurableParamHelper.h
"
17
18
#include <array>
19
#include <cstdint>
20
#include <map>
21
#include <set>
22
#include <vector>
23
24
namespace
o2::conf::test
25
{
26
struct
TestParam
:
public
o2::conf::ConfigurableParamHelper
<TestParam> {
27
enum
TestEnum
: uint8_t {
28
A
,
29
B
,
30
C
31
};
32
33
int
iValue
{42};
34
float
fValue
{3.14};
35
double
dValue
{3.14};
36
bool
bValue
{
true
};
37
unsigned
uValue
{1};
38
long
lValue
{1};
39
unsigned
long
ulValue
{1};
40
long
long
llValue
{1};
41
unsigned
long
long
ullValue
{1};
42
std::string
sValue
=
"default"
;
43
int
iValueProvenanceTest
{0};
44
TestEnum
eValue
=
TestEnum::C
;
45
int
caValue
[3] = {0, 1, 2};
46
std::vector<int>
vec
;
47
std::vector<uint8_t>
u8vec
;
48
std::map<int, uint32_t>
map
;
49
std::map<std::string, uint32_t>
smap
;
50
std::set<uint16_t>
set
;
51
52
O2ParamDef
(
TestParam
,
"TestParam"
);
53
};
54
}
// namespace o2::conf::test
55
56
#endif
ConfigurableParamHelper.h
ConfigurableParam.h
o2::conf::ConfigurableParamHelper
Definition
ConfigurableParamHelper.h:116
o2::conf::test
Definition
ConfigurableParamTest.h:25
o2::conf::test::TestParam
Definition
ConfigurableParamTest.h:26
o2::conf::test::TestParam::bValue
bool bValue
Definition
ConfigurableParamTest.h:36
o2::conf::test::TestParam::uValue
unsigned uValue
Definition
ConfigurableParamTest.h:37
o2::conf::test::TestParam::ulValue
unsigned long ulValue
Definition
ConfigurableParamTest.h:39
o2::conf::test::TestParam::dValue
double dValue
Definition
ConfigurableParamTest.h:35
o2::conf::test::TestParam::eValue
TestEnum eValue
Definition
ConfigurableParamTest.h:44
o2::conf::test::TestParam::sValue
std::string sValue
Definition
ConfigurableParamTest.h:42
o2::conf::test::TestParam::iValue
int iValue
Definition
ConfigurableParamTest.h:33
o2::conf::test::TestParam::set
std::set< uint16_t > set
Definition
ConfigurableParamTest.h:50
o2::conf::test::TestParam::smap
std::map< std::string, uint32_t > smap
Definition
ConfigurableParamTest.h:49
o2::conf::test::TestParam::map
std::map< int, uint32_t > map
Definition
ConfigurableParamTest.h:48
o2::conf::test::TestParam::llValue
long long llValue
Definition
ConfigurableParamTest.h:40
o2::conf::test::TestParam::TestEnum
TestEnum
Definition
ConfigurableParamTest.h:27
o2::conf::test::TestParam::A
@ A
Definition
ConfigurableParamTest.h:28
o2::conf::test::TestParam::C
@ C
Definition
ConfigurableParamTest.h:30
o2::conf::test::TestParam::B
@ B
Definition
ConfigurableParamTest.h:29
o2::conf::test::TestParam::u8vec
std::vector< uint8_t > u8vec
Definition
ConfigurableParamTest.h:47
o2::conf::test::TestParam::lValue
long lValue
Definition
ConfigurableParamTest.h:38
o2::conf::test::TestParam::caValue
int caValue[3]
Definition
ConfigurableParamTest.h:45
o2::conf::test::TestParam::iValueProvenanceTest
int iValueProvenanceTest
Definition
ConfigurableParamTest.h:43
o2::conf::test::TestParam::vec
std::vector< int > vec
Definition
ConfigurableParamTest.h:46
o2::conf::test::TestParam::fValue
float fValue
Definition
ConfigurableParamTest.h:34
o2::conf::test::TestParam::ullValue
unsigned long long ullValue
Definition
ConfigurableParamTest.h:41
o2::conf::test::TestParam::O2ParamDef
O2ParamDef(TestParam, "TestParam")
Common
Utils
include
CommonUtils
ConfigurableParamTest.h
Generated on Tue Jul 14 2026 14:09:02 for Project by
1.9.8