bpp-seq3  3.0.0
bpp::BppOAlphabetIndex1Format Class Reference

AlphabetIndex1 I/O in BppO format. More...

#include <Bpp/Seq/Io/BppOAlphabetIndex1Format.h>

+ Inheritance diagram for bpp::BppOAlphabetIndex1Format:
+ Collaboration diagram for bpp::BppOAlphabetIndex1Format:

Public Member Functions

 BppOAlphabetIndex1Format (std::shared_ptr< const Alphabet > &alphabet, const std::string &message, bool verbose=true)
 
 BppOAlphabetIndex1Format (std::shared_ptr< const CodonAlphabet > &alphabet, std::shared_ptr< const GeneticCode > &gencode, const std::string &message, bool verbose=true)
 
 BppOAlphabetIndex1Format (const BppOAlphabetIndex1Format &format)
 
BppOAlphabetIndex1Formatoperator= (const BppOAlphabetIndex1Format &format)
 
virtual ~BppOAlphabetIndex1Format ()
 
const std::string getFormatName () const
 
const std::string getFormatDescription () const
 
const std::string getDataType () const
 
std::unique_ptr< AlphabetIndex1read (const std::string &description)
 Read a AlphabetIndex1 object from a string. More...
 

Private Attributes

std::shared_ptr< const Alphabetalphabet_
 
std::shared_ptr< const GeneticCodegencode_
 
std::string message_
 
bool verbose_
 

Detailed Description

AlphabetIndex1 I/O in BppO format.

Enables the instantiation of AlphabetIndex1 objects according to the BppO syntax (see the Bio++ Program Suite manual for a detailed description of this syntax).

Definition at line 26 of file BppOAlphabetIndex1Format.h.

Constructor & Destructor Documentation

◆ BppOAlphabetIndex1Format() [1/3]

bpp::BppOAlphabetIndex1Format::BppOAlphabetIndex1Format ( std::shared_ptr< const Alphabet > &  alphabet,
const std::string &  message,
bool  verbose = true 
)
inline
Parameters
alphabetThe alphabet for which indices should be built. The alphabet will be used to check that the instantiated index is compatible.
messageSome text describing what the index is intended for.
verboseTell if some messages should be printed while parsing.

Definition at line 43 of file BppOAlphabetIndex1Format.h.

◆ BppOAlphabetIndex1Format() [2/3]

bpp::BppOAlphabetIndex1Format::BppOAlphabetIndex1Format ( std::shared_ptr< const CodonAlphabet > &  alphabet,
std::shared_ptr< const GeneticCode > &  gencode,
const std::string &  message,
bool  verbose = true 
)
inline

Definition at line 53 of file BppOAlphabetIndex1Format.h.

◆ BppOAlphabetIndex1Format() [3/3]

bpp::BppOAlphabetIndex1Format::BppOAlphabetIndex1Format ( const BppOAlphabetIndex1Format format)
inline

Definition at line 64 of file BppOAlphabetIndex1Format.h.

◆ ~BppOAlphabetIndex1Format()

virtual bpp::BppOAlphabetIndex1Format::~BppOAlphabetIndex1Format ( )
inlinevirtual

Definition at line 79 of file BppOAlphabetIndex1Format.h.

Member Function Documentation

◆ getDataType()

const std::string bpp::BppOAlphabetIndex1Format::getDataType ( ) const
inlinevirtual

Implements bpp::IOFormat.

Definition at line 86 of file BppOAlphabetIndex1Format.h.

◆ getFormatDescription()

const std::string bpp::BppOAlphabetIndex1Format::getFormatDescription ( ) const
inlinevirtual

Implements bpp::IOFormat.

Definition at line 84 of file BppOAlphabetIndex1Format.h.

◆ getFormatName()

const std::string bpp::BppOAlphabetIndex1Format::getFormatName ( ) const
inlinevirtual

Implements bpp::IOFormat.

Definition at line 82 of file BppOAlphabetIndex1Format.h.

◆ operator=()

BppOAlphabetIndex1Format& bpp::BppOAlphabetIndex1Format::operator= ( const BppOAlphabetIndex1Format format)
inline

Definition at line 70 of file BppOAlphabetIndex1Format.h.

References alphabet_, gencode_, message_, and verbose_.

◆ read()

unique_ptr< AlphabetIndex1 > BppOAlphabetIndex1Format::read ( const std::string &  description)

Read a AlphabetIndex1 object from a string.

Parameters
descriptionA string describing the index in the keyval syntax.
Returns
A new AlphabetIndex1 object according to options specified.
Exceptions
Exceptionif an error occurred.

Definition at line 33 of file BppOAlphabetIndex1Format.cpp.

References bpp::ApplicationTools::displayResult(), bpp::ApplicationTools::getAFilePath(), bpp::AlphabetTools::isCodonAlphabet(), bpp::AlphabetTools::isProteicAlphabet(), bpp::KeyvalTools::parseProcedure(), and read().

Referenced by bpp::SequenceApplicationTools::getAlphabetIndex1(), read(), and bpp::BppOAlphabetIndex2Format::read().

Member Data Documentation

◆ alphabet_

std::shared_ptr<const Alphabet> bpp::BppOAlphabetIndex1Format::alphabet_
private

Definition at line 30 of file BppOAlphabetIndex1Format.h.

Referenced by operator=().

◆ gencode_

std::shared_ptr<const GeneticCode> bpp::BppOAlphabetIndex1Format::gencode_
private

Definition at line 31 of file BppOAlphabetIndex1Format.h.

Referenced by operator=().

◆ message_

std::string bpp::BppOAlphabetIndex1Format::message_
private

Definition at line 33 of file BppOAlphabetIndex1Format.h.

Referenced by operator=().

◆ verbose_

bool bpp::BppOAlphabetIndex1Format::verbose_
private

Definition at line 34 of file BppOAlphabetIndex1Format.h.

Referenced by operator=().


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