bpp-core3  3.0.0
Dcse.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: The Bio++ Development Group
2 //
3 // SPDX-License-Identifier: CECILL-2.1
4 
5 #ifndef BPP_SEQ_IO_DCSE_H
6 #define BPP_SEQ_IO_DCSE_H
7 
8 
9 #include "../Container/AlignedSequenceContainer.h"
10 #include "../Container/SequenceContainer.h"
11 #include "../Sequence.h"
12 #include "AbstractIAlignment.h"
13 
14 namespace bpp
15 {
25 class DCSE :
26  public AbstractIAlignment2
27 {
28 public:
29  DCSE() {}
30  virtual ~DCSE() {}
31 
32 public:
38  void appendAlignmentFromStream(std::istream& input, SequenceContainerInterface& sc) const override;
49  std::unique_ptr<SequenceContainerInterface> readSequences(std::istream& input, std::shared_ptr<const Alphabet> alpha) const override
50  {
51  return readAlignment(input, alpha);
52  }
53 
54  std::unique_ptr<SequenceContainerInterface> readSequences(const std::string& path, std::shared_ptr<const Alphabet> alpha) const override
55  {
56  return readAlignment(path, alpha);
57  }
66  const std::string getFormatName() const override;
67 
68  const std::string getFormatDescription() const override;
70 };
71 } // end of namespace bpp.
72 #endif // BPP_SEQ_IO_DCSE_H
Partial implementation of the IAlignment and ISequence interface, dedicated to alignment readers...
std::unique_ptr< SequenceContainerInterface > readSequences(const std::string &path, std::shared_ptr< const Alphabet > alpha) const override
Create a new container from a file.
Definition: Dcse.h:54
This alphabet is used to deal NumericAlphabet.
The SequenceContainer interface.
DCSE()
Definition: Dcse.h:29
void appendAlignmentFromStream(std::istream &input, SequenceContainerInterface &sc) const override
Append sequences to a container from a stream.
Definition: Dcse.cpp:18
Support for the Dedicated Comparative Sequence Editor format.
Definition: Dcse.h:25
const std::string getFormatName() const override
Definition: Dcse.cpp:68
const std::string getFormatDescription() const override
Definition: Dcse.cpp:70
virtual void readAlignment(std::istream &input, SequenceContainerInterface &sc) const override
Add sequences to a container from a stream.
virtual ~DCSE()
Definition: Dcse.h:30
std::unique_ptr< SequenceContainerInterface > readSequences(std::istream &input, std::shared_ptr< const Alphabet > alpha) const override
Create a new container from a stream.
Definition: Dcse.h:49