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
17
18#include <array>
19#include <cstdint>
20#include <map>
21#include <set>
22#include <vector>
23
25{
26struct TestParam : public o2::conf::ConfigurableParamHelper<TestParam> {
27 enum TestEnum : uint8_t {
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";
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
std::map< std::string, uint32_t > smap
std::map< int, uint32_t > map
std::vector< uint8_t > u8vec
O2ParamDef(TestParam, "TestParam")