FNSS C++ library
C++ API for the Fast Network Simulation Setup (FNSS) toolchain
 All Classes Functions Typedefs Pages
units.h
1 #ifndef UNITS_H
2 #define UNITS_H
3 
4 #define PACKET_SIZE 1500 * 8 //Conversion from packet to bit count for BufferSize.
5 #include "measurement-unit.h"
6 
7 namespace fnss {
8 
16 class Units {
17 public:
18  static const MeasurementUnit SIPrefix;
19  static const MeasurementUnit Time;
20  static const MeasurementUnit Data;
21  static const MeasurementUnit BufferSize; //Appends "packet" unit to Data.
22  static const MeasurementUnit Bandwidth;
23  static const MeasurementUnit Distance;
24 
25 private:
26  Units();
27 };
28 
29 } //namespace
30 
31 #endif //UNITS_H
Definition: units.h:16
Definition: measurement-unit.h:10