#pragma once #include "cache.h" void htmlencode(std::string& data); void show_histogram(const Caches& cc, std::string Cache::*ptr, const std::string& caption, bool html = 0, bool sort_by_val = 1); void show_histogram(const pCaches& cc, std::string Cache::*ptr, const std::string& caption, bool html = 0, bool sort_by_val = 1); void show_histogram(const std::map& data, const std::string& caption, bool html = 0, bool sort_by_val = 1); void show_nested_histogram(const pCaches& fcc, std::string Cache::*ptr, std::string Cache::*ptr2, const std::string& caption, bool html = 0, bool sort_by_val = 1); int find_streak(const std::multimap& cc, std::time_t& start); long int get_num(char c, char* opt); void average_html(const Caches& cc, float Cache::*ptr, const std::string& caption); void average_html(const Caches& cc, int Cache::*ptr, const std::string& caption); float average(const Caches& cc, float Cache::*ptr); float average(const Caches& cc, int Cache::*ptr); void sum_html(const Caches& cc, float Cache::*ptr, const std::string& caption); void sum_html(const Caches& cc, int Cache::*ptr, const std::string& caption); float sum(const Caches& cc, float Cache::*ptr); int sum(const Caches& cc, int Cache::*ptr); void header_html(); void footer_html();