/* * File: HistogramStatistic.h * Author: jgaebler * * Created on June 22, 2011, 11:56 AM */ #ifndef HISTOGRAMSTATISTIC_H #define HISTOGRAMSTATISTIC_H #include "../common/Platform.h" #include "../common/time/GenericTime.h" #if OMNETPP #include #else #error HistogramStatistic not implemented for ubeeme yet #endif namespace ubeeme { namespace moversight { /** * @brief Provides an abstraction for storing statistic data within a histogram * @author Jan Gäbler * @ingroup Moversight * @class HistogramStatistic */ #if OMNETPP class HistogramStatistic : public cDoubleHistogram { #else #error HistogramStatistic not implemented for ubeeme yet class HistogramStatistic { #endif public: HistogramStatistic(); HistogramStatistic(const char * name); ~HistogramStatistic(); void collect(double v); void collect(GenericTime t); }; } } #endif /* HISTOGRAMSTATISTIC_H */