abstract_text_format< Metric > Struct Template Referenceabstract

#include <abstract_text_format.h>

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

Public Types

typedef Metric metric_t
 
typedef Metric::header_type header_t
 
typedef metric_t::id_t id_t
 

Public Member Functions

virtual ~abstract_text_format ()
 
virtual size_t write_header (std::ostream &out, const header_t &header, const std::vector< std::string > &channel_names, const char sep, const char eol)=0
 
virtual size_t write_metric (std::ostream &out, const metric_t &metric, const header_t &header, const char sep, const char eol, const char missing)=0
 
virtual ::int16_t version () const =0
 

Detailed Description

template<class Metric>
struct illumina::interop::io::abstract_text_format< Metric >

Abstract class that provides an interface for the text format of a metric

The template argument for this class corresponds to a specific type of metric set.

Member Typedef Documentation

typedef Metric::header_type header_t

Define the metric header type

typedef metric_t::id_t id_t

ID type

typedef Metric metric_t

Define the metric type

Constructor & Destructor Documentation

virtual ~abstract_text_format ( )
inlinevirtual

Destructor

Member Function Documentation

virtual ::int16_t version ( ) const
pure virtual

Get the version of this metric format

Returns
version number

Implemented in text_format< Metric, text_layout< Metric, Version > >.

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

Write the header for a set of metric records 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

Implemented in text_format< Metric, text_layout< Metric, Version > >.

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

Write a metric record to the given output stream

Parameters
outoutput stream to write the binary InterOp file data
metricinterop metric data to write
headerinterop metric header data to write
sepcolumn seperator
eolrow separator
missingmissing value indicator
Returns
number of columns written

Implemented in text_format< Metric, text_layout< Metric, Version > >.


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