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
20 #include <senf/Utils/Logger.hh>
21 
23 
24 class Configuration
25 {
27 
28 public:
29  bool verbose;
30 
31  std::string iface;
32  unsigned frequency;
33  bool ht40;
34 
36  unsigned label;
37 
38  unsigned txBuf;
39  unsigned qlen;
40  unsigned maxBurst;
41 
42  unsigned bitrate;
43 
46 
47  unsigned consolePort;
48 
49  Configuration();
50 
51  void help();
52  void version();
53  void enableHighresTimers();
55 
56  bool parse(int argc, char const *argv[]);
57 };
58 
60 #endif
senf::ClockService::clock_type duration
config::time_type clock_type
#define SENF_LOG_CLASS_AREA()
unsigned maxBurst
unsigned frequency
unsigned txBuf
unsigned label
senf::ClockService::clock_type reportingInterval
unsigned consolePort
bool parse(int argc, char const *argv[])
void enableHighresTimers()
unsigned bitrate
senf::MACAddress peer
std::string iface
void enableRealtimeScheduling()