kopia lustrzana https://gitlab.com/tomaszg/geostat
30 wiersze
1.3 KiB
C++
30 wiersze
1.3 KiB
C++
#pragma once
|
|
|
|
#include "cache.h"
|
|
#include "powertrail.h"
|
|
|
|
#include <functional>
|
|
|
|
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<std::string, int>& data, const std::string& caption, bool html = 0, bool sort_by_val = 1);
|
|
void show_histogram(const pPowertrails& tt, 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);
|
|
|
|
uint find_streak(const Date_Caches& cc, std::time_t& start);
|
|
|
|
uint get_num(char c, char* opt);
|
|
|
|
template <typename T> void average_html(const Caches& cc, T Cache::*ptr, const std::string& caption);
|
|
template <typename T> float average(const Caches& cc, T Cache::*ptr);
|
|
|
|
template <typename T> void sum_html(const Caches& cc, T Cache::*ptr, const std::string& caption);
|
|
template <typename T> T sum(const Caches& cc, T Cache::*ptr);
|
|
|
|
int count_caches(const Caches& cc, std::string& codes, std::function<bool(const Cache& c)> test);
|
|
|
|
void header_html();
|
|
void footer_html();
|