/usr/include/measurement_kit/report/report.hpp is in libmeasurement-kit-dev 0.7.1-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | // Part of measurement-kit <https://measurement-kit.github.io/>.
// Measurement-kit is free software. See AUTHORS and LICENSE for more
// information on the copying conditions.
#ifndef MEASUREMENT_KIT_REPORT_REPORT_HPP
#define MEASUREMENT_KIT_REPORT_REPORT_HPP
#include <measurement_kit/common.hpp>
#include <measurement_kit/report/entry.hpp>
#include <ctime>
namespace mk {
namespace report {
class BaseReporter; // Forward decl.
class Report {
public:
const std::string software_name = "measurement_kit";
const std::string software_version = MEASUREMENT_KIT_VERSION;
const std::string data_format_version = "0.2.0";
std::string test_name;
std::string test_version;
std::string probe_ip;
std::string probe_asn;
std::string probe_cc;
tm test_start_time;
Settings options;
std::string report_id; /* Set after open(), if possible */
Report();
void add_reporter(Var<BaseReporter> reporter);
void fill_entry(Entry &entry) const;
Entry get_dummy_entry() const;
void open(Callback<Error> callback);
void write_entry(Entry entry, Callback<Error> callback, Var<Logger> logger);
void close(Callback<Error> callback);
private:
std::vector<Var<BaseReporter>> reporters_;
};
} // namespace report
} // namespace mk
#endif
|