bpp-phyl3  3.0.0
bpp::AbstractOPhyloDAG Class Referenceabstract

Partial implementation of the ODAG interface. More...

#include <Bpp/Phyl/Io/IoDAG.h>

+ Inheritance diagram for bpp::AbstractOPhyloDAG:
+ Collaboration diagram for bpp::AbstractOPhyloDAG:

Public Member Functions

 AbstractOPhyloDAG ()
 
virtual ~AbstractOPhyloDAG ()
 
virtual void writePhyloDAG (const PhyloDAG &dag, std::ostream &out) const =0
 Write a PhyloDAG to a stream. More...
 
virtual void writePhyloDAG (const PhyloDAG &dag, const std::string &path, bool overwrite) const
 Write a DAG to a file. More...
 
virtual const std::string getDataType () const
 
virtual const std::string getFormatName () const=0
 
virtual const std::string getFormatDescription () const=0
 

Detailed Description

Partial implementation of the ODAG interface.

Definition at line 149 of file IoDAG.h.

Constructor & Destructor Documentation

◆ AbstractOPhyloDAG()

bpp::AbstractOPhyloDAG::AbstractOPhyloDAG ( )
inline

Definition at line 153 of file IoDAG.h.

◆ ~AbstractOPhyloDAG()

virtual bpp::AbstractOPhyloDAG::~AbstractOPhyloDAG ( )
inlinevirtual

Definition at line 154 of file IoDAG.h.

Member Function Documentation

◆ getDataType()

virtual const std::string bpp::IODAG::getDataType ( ) const
inlinevirtualinherited

Implements bpp::IOFormat.

Definition at line 48 of file IoDAG.h.

◆ writePhyloDAG() [1/2]

virtual void bpp::AbstractOPhyloDAG::writePhyloDAG ( const PhyloDAG &  dag,
const std::string &  path,
bool  overwrite 
) const
inlinevirtual

Write a DAG to a file.

Parameters
daga PhyloDAG object.
pathThe file path.
overwriteTell if existing file must be overwritten. Otherwise append to the file.
Exceptions
ExceptionIf an error occurred.

Implements bpp::OPhyloDAG.

Definition at line 158 of file IoDAG.h.

References bpp::IOException::what(), and writePhyloDAG().

◆ writePhyloDAG() [2/2]

virtual void bpp::AbstractOPhyloDAG::writePhyloDAG ( const PhyloDAG &  dag,
std::ostream &  out 
) const
pure virtual

Write a PhyloDAG to a stream.

Parameters
dagA PhyloDAG object.
outThe output stream.
Exceptions
ExceptionIf an error occurred.

Implements bpp::OPhyloDAG.

Implemented in bpp::ExtendedNewick.

Referenced by writePhyloDAG().


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