text_format< Metric, text_layout< Metric, Version > > Struct Template Reference

#include <text_format.h>

Inheritance diagram for text_format< Metric, text_layout< Metric, Version > >:
abstract_text_format< Metric >

Public Types

typedef Metric metric_t
 
typedef Metric::header_type header_t
 
- Public Types inherited from abstract_text_format< Metric >
typedef Metric metric_t
 
typedef Metric::header_type header_t
 
typedef metric_t::id_t id_t
 

Public Member Functions

size_t write_header (std::ostream &out, const header_t &header, const std::vector< std::string > &channel_names, const char sep, const char eol)
 
size_t write_metric (std::ostream &out, const metric_t &metric, const header_t &header, const char sep, const char eol, const char missing)
 
::int16_t version () const
 
- Public Member Functions inherited from abstract_text_format< Metric >
virtual ~abstract_text_format ()
 

Detailed Description

template<class Metric, int Version>
struct illumina::interop::io::text_format< Metric, text_layout< Metric, Version > >

Shared functionality for writing text InterOp metrics

Specialization for text_layout

Member Typedef Documentation

typedef Metric::header_type header_t

Define the metric header type

typedef Metric metric_t

Define the metric type

Member Function Documentation

::int16_t version ( ) const
inlinevirtual

Get the version of this metric format

Returns
version number

Implements abstract_text_format< Metric >.

size_t write_header ( std::ostream &  out,
const header_t header,
const std::vector< std::string > &  channel_names,
const char  sep,
const char  eol 
)
inlinevirtual

Write the header of text format to the given output stream

Parameters
outoutput stream to write the binary InterOp file data
headerheader of a metric set
channel_nameslist of channel names
sepcolumn seperator
eolrow separator
Returns
number of column headers

Implements abstract_text_format< Metric >.

size_t write_metric ( std::ostream &  out,
const metric_t metric,
const header_t header,
const char  sep,
const char  eol,
const char  missing 
)
inlinevirtual

Write a text record to the given output stream

Parameters
outoutput stream
metrica metric to write
headermetric set header
sepcolumn seperator
eolrow separator
missingmissing value indicator
Returns
number of columns written

Implements abstract_text_format< Metric >.


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