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>
21 
23 
24 class Configuration
25 {
27 
28 public:
29  bool verbose;
30  std::string phyName;
33  unsigned frequency;
34  bool ht40;
35  unsigned rateIdx;
37 
40  unsigned txPower;
41  unsigned txFrameLength;
42 
43  unsigned sndBuf;
44 
45  Configuration();
46 
47  void help();
48  void version();
49  void enableHighresTimers();
51 
52  bool parse(int argc, char const *argv[]);
53 };
54 
56 #endif
senf::ClockService::clock_type duration
config::time_type clock_type
senf::INet4SocketAddress destination
unsigned sndBuf
std::string phyName
#define SENF_LOG_CLASS_AREA()
unsigned txFrameLength
unsigned frequency
unsigned txPower
senf::ClockService::clock_type txDuration
unsigned rateIdx
senf::ClockService::clock_type reportingInterval
bool parse(int argc, char const *argv[])
void enableHighresTimers()
senf::ClockService::clock_type txPeriod
void enableRealtimeScheduling()