metric_writer Struct Reference

Public Member Functions

 metric_writer (std::ostream &out, const size_t latest_version, const size_t max_line=80)
 
template<class MetricSet >
void operator() (const MetricSet &metrics) const
 
 metric_writer (std::ostream &out, const std::vector< std::string > &channels)
 
template<class MetricSet >
void operator() (const MetricSet &metrics) const
 

Detailed Description

Call back functor for writing binary metric data as a string

Call back functor for writing text data to the output stream

Constructor & Destructor Documentation

metric_writer ( std::ostream &  out,
const size_t  latest_version,
const size_t  max_line = 80 
)
inline

Constructor

Parameters
outoutput stream
latest_versionversion to write out
max_linenumber of characters before wrapping
metric_writer ( std::ostream &  out,
const std::vector< std::string > &  channels 
)
inline

Constructor

Parameters
outoutput stream
channelslist of channel names

Member Function Documentation

void operator() ( const MetricSet &  metrics) const
inline

Function operator overload to write data

Parameters
metricsset of metrics
void operator() ( const MetricSet &  metrics) const
inline

Function operator overload to write data

Parameters
metricsset of metrics

The documentation for this struct was generated from the following files: