multovl  1.3
Multiple overlaps of genomic regions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
multovl::io::Linewriter Class Referenceabstract

Base class of stringifier objects. More...

#include "linewriter.hh"

Inheritance diagram for multovl::io::Linewriter:
multovl::io::BedLinewriter multovl::io::GffLinewriter

Public Member Functions

 Linewriter (const std::string &chrom)
 
virtual std::string write (const Region &reg)=0
 
virtual std::string write (const MultiRegion &reg)=0
 

Protected Member Functions

void reset ()
 

Protected Attributes

std::string _chr
 
std::ostringstream _ostr
 

Detailed Description

Base class of stringifier objects.

Constructor & Destructor Documentation

multovl::io::Linewriter::Linewriter ( const std::string &  chrom)
explicit

Sets up a Linewriter object.

Parameters
chromthe chromosome name containing the regions to be stringified

Member Function Documentation

virtual std::string multovl::io::Linewriter::write ( const Region reg)
pure virtual

Writes a Region to a string (no newline) and returns it.

Parameters
regthe Region to be stringified
Returns
the stringified region or the empty string if something went wrong

Implemented in multovl::io::GffLinewriter, and multovl::io::BedLinewriter.

virtual std::string multovl::io::Linewriter::write ( const MultiRegion reg)
pure virtual

Writes a MultiRegion to a string (no newline) and returns it.

Parameters
regthe MultiRegion to be stringified
Returns
the stringified region or the empty string if something went wrong

Implemented in multovl::io::GffLinewriter, and multovl::io::BedLinewriter.


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