Project
Loading...
Searching...
No Matches
ConfigContext.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
#ifndef O2_FRAMEWORK_CONFIG_CONTEXT_H_
12
#define O2_FRAMEWORK_CONFIG_CONTEXT_H_
13
14
#include "
Framework/ConfigParamRegistry.h
"
15
#include "
Framework/ServiceRegistryRef.h
"
16
17
namespace
o2::framework
18
{
19
23
class
ConfigContext
24
{
25
public
:
26
ConfigContext
(
ConfigParamRegistry
&
options
,
ServiceRegistryRef
services
,
int
argc
,
char
**
argv
);
27
28
[[nodiscard]]
ConfigParamRegistry
&
options
()
const
{
return
mOptions; }
29
[[nodiscard]]
ServiceRegistryRef
services
()
const
{
return
mServices; }
30
31
[[nodiscard]]
bool
helpOnCommandLine
()
const
;
32
33
[[nodiscard]]
int
argc
()
const
{
return
mArgc; }
34
[[nodiscard]]
char
*
const
*
argv
()
const
{
return
mArgv; }
35
36
private
:
37
ConfigParamRegistry
& mOptions;
38
39
ServiceRegistryRef
mServices;
40
// additionaly keep information about the original command line
41
int
mArgc = 0;
42
char
** mArgv =
nullptr
;
43
};
44
45
}
// namespace o2::framework
46
47
#endif
// O2_FRAMEWORK_CONFIG_CONTEXT_H_
ConfigParamRegistry.h
ServiceRegistryRef.h
o2::framework::ConfigContext
Definition
ConfigContext.h:24
o2::framework::ConfigContext::helpOnCommandLine
bool helpOnCommandLine() const
Definition
ConfigContext.cxx:20
o2::framework::ConfigContext::argc
int argc() const
Definition
ConfigContext.h:33
o2::framework::ConfigContext::services
ServiceRegistryRef services() const
Definition
ConfigContext.h:29
o2::framework::ConfigContext::options
ConfigParamRegistry & options() const
Definition
ConfigContext.h:28
o2::framework::ConfigContext::argv
char *const * argv() const
Definition
ConfigContext.h:34
o2::framework::ConfigParamRegistry
Definition
ConfigParamRegistry.h:70
o2::framework::ServiceRegistryRef
Definition
ServiceRegistryRef.h:21
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
Framework
Core
include
Framework
ConfigContext.h
Generated on Tue Feb 25 2025 23:16:38 for Project by
1.9.8