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 // Definition of non-inline non-template functions
18 
19 // Custom includes
22 #include <senf/Utils/Logger.hh>
23 #include <senf/Utils/Console.hh>
24 
25 
26 class Configuration
27 {
29 
30 public:
31  bool verbose;
32  boost::uint64_t numPackets;
33  boost::uint32_t pktsPerSecond;
34  boost::uint32_t pktSize;
35  std::uint32_t sendBuffer;
36  std::string interface;
38  unsigned sessionId;
39 
40  Configuration();
41 
42  void help();
43  void version();
44  void enableHighresTimers();
46 
47  bool parse( int argc, char const *argv[]);
48 };
49 
50 #endif
senf::MACAddress destination
boost::uint32_t pktSize
#define SENF_LOG_CLASS_AREA()
std::string interface
boost::uint32_t pktsPerSecond
std::uint32_t sendBuffer
boost::uint64_t numPackets
bool parse(int argc, char const *argv[])
void enableHighresTimers()
unsigned sessionId
void enableRealtimeScheduling()