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
16
17namespace o2::framework
18{
19
24{
25 public:
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_
ServiceRegistryRef services() const
ConfigParamRegistry & options() const
char *const * argv() const
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20