abstract_metric_format.h
Go to the documentation of this file.
72 virtual size_t read_header(std::istream& in, model::metric_base::metric_set<Metric>& metric_set)=0;
80 virtual void write_metric(std::ostream &out, const metric_t &metric, const header_t &header) = 0;
Metric metric_t
Definition: abstract_metric_format.h:27
Definition: metric_set.h:40
Metric::header_type header_t
Definition: abstract_metric_format.h:29
metric_t::id_t id_t
Definition: abstract_metric_format.h:31
Definition: enum_description.h:15
virtual size_t record_size(const header_t &header) const =0
Definition: abstract_metric_format.h:24
virtual ::int16_t version() const =0
virtual size_t header_size(const header_t &header) const =0
virtual void read_metrics(std::istream &in, model::metric_base::metric_set< Metric > &metric_set, const size_t file_size)=0
virtual bool is_multi_record() const =0
virtual void write_metric(std::ostream &out, const metric_t &metric, const header_t &header)=0
virtual ~abstract_metric_format()
Definition: abstract_metric_format.h:35
virtual void write_metric_header(std::ostream &out, const header_t &header)=0
virtual size_t read_header(std::istream &in, model::metric_base::metric_set< Metric > &metric_set)=0
virtual size_t buffer_size(const model::metric_base::metric_set< Metric > &metric_set) const =0
virtual bool is_deprecated() const =0
::int64_t file_size(const std::string &path)
Definition: filesystem.cpp:156