Configuration.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
6 //
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
11 //
12 
13 
14 #ifndef __CONFIGURATION_HH__
15 #define __CONFIGURATION_HH__
16 
17 // Custom includes
19 #include <senf/Utils/Logger.hh>
20 
22 
23 class Configuration
24 {
26 
27 public:
28  bool tsftHistogram;
29  bool verbose;
30  bool csvMode;
31  bool reorderPackets;
32  bool promisc;
33  float clockDrift;
34 
39  std::string device;
41  std::uint64_t numPackets;
42 
43  Configuration();
44 
45  void help();
46  void version();
47  void enableHighresTimers();
49 
50  void dev(std::string const & d);
51  void monDev(std::string const & d);
52 
53  bool parse(int argc, char const *argv[]);
54 };
55 
57 #endif
senf::ClockService::clock_type duration
config::time_type clock_type
senf::ClockService::clock_type maxWait
senf::INet4SocketAddress logDestination
#define SENF_LOG_CLASS_AREA()
void dev(std::string const &d)
senf::ClockService::clock_type reorderTimeout
std::uint64_t numPackets
senf::ClockService::clock_type reportingInterval
bool parse(int argc, char const *argv[])
void enableHighresTimers()
std::string device
void enableRealtimeScheduling()
void monDev(std::string const &d)