CbmRoot
Loading...
Searching...
No Matches
services/archive_explorer/app/Options.h
Go to the documentation of this file.
1
/* Copyright (C) 2023 FIAS Frankfurt Institute for Advanced Studies, Frankfurt / Main
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Felix Weiglhofer [committer] */
4
#pragma once
5
6
#include <optional>
7
8
#include "
compat/Filesystem.h
"
9
10
namespace
cbm::explore
11
{
12
class
Options
{
13
public
:
14
Options
(
int
argc,
char
** argv);
15
16
int
Port
()
const
{
return
fPort
; }
17
18
algo::fs::path
Input
()
const
{
return
fInput
; }
19
algo::fs::path
Input2
()
const
{
return
fInput2
; }
20
21
std::optional<uint32_t>
Sensor
()
const
{
return
fFilterSensor
? std::make_optional(
fSensor
) : std::nullopt; }
22
23
private
:
24
int
fPort
;
25
uint32_t
fSensor
;
26
bool
fFilterSensor
=
false
;
27
std::string
fInput
;
28
std::string
fInput2
;
29
};
30
}
// namespace cbm::explore
Filesystem.h
cbm::explore::Options
Definition
services/archive_explorer/app/Options.h:12
cbm::explore::Options::Input2
algo::fs::path Input2() const
Definition
services/archive_explorer/app/Options.h:19
cbm::explore::Options::fInput
std::string fInput
Definition
services/archive_explorer/app/Options.h:27
cbm::explore::Options::fInput2
std::string fInput2
Definition
services/archive_explorer/app/Options.h:28
cbm::explore::Options::fSensor
uint32_t fSensor
Definition
services/archive_explorer/app/Options.h:25
cbm::explore::Options::Sensor
std::optional< uint32_t > Sensor() const
Definition
services/archive_explorer/app/Options.h:21
cbm::explore::Options::Options
Options(int argc, char **argv)
Definition
services/archive_explorer/app/Options.cxx:14
cbm::explore::Options::Input
algo::fs::path Input() const
Definition
services/archive_explorer/app/Options.h:18
cbm::explore::Options::fFilterSensor
bool fFilterSensor
Definition
services/archive_explorer/app/Options.h:26
cbm::explore::Options::Port
int Port() const
Definition
services/archive_explorer/app/Options.h:16
cbm::explore::Options::fPort
int fPort
Definition
services/archive_explorer/app/Options.h:24
cbm::explore
Definition
services/archive_explorer/app/Application.h:11
services
archive_explorer
app
Options.h
Generated on Sun Dec 22 2024 23:04:03 for CbmRoot by
1.12.0