00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef WIFI_FRAME_STATS_GAP_LENGTHS_HH_
00023 # define WIFI_FRAME_STATS_GAP_LENGTHS_HH_
00024
00025 # include <vector>
00026
00027 # include <wipal/wifi/frame/stats/abstract_stats.hh>
00028
00029 namespace wifi
00030 {
00031
00032 namespace frame
00033 {
00034
00035 namespace stats
00036 {
00037
00038 struct gap_lengths: public abstract_stats
00039 {
00040 gap_lengths();
00041
00042 void account_gap(unsigned gap_length);
00043 std::ostream& print(std::ostream& o) const;
00044
00045 private:
00046 typedef std::vector<unsigned> gaplen_frequencies;
00047
00048 enum
00049 {
00050 gl_max = 2048,
00051 gl_freqs_resolution = 16,
00052 gl_freqs_size = gl_max / gl_freqs_resolution
00053 };
00054
00055 gaplen_frequencies gl_freqs_;
00056 unsigned gap_count_;
00057 };
00058
00059 }
00060
00061 }
00062
00063 }
00064
00065 # include "gap_lengths.hxx"
00066
00067 #endif // ! WIFI_FRAME_STATS_GAP_LENGTHS_HH_