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
10namespace 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
std::optional< uint32_t > Sensor() const