5 #ifndef BPP_SEQ_IO_ISEQUENCE_H
6 #define BPP_SEQ_IO_ISEQUENCE_H
10 #include "../Container/SequenceContainer.h"
11 #include "../Container/SiteContainer.h"
12 #include "../Sequence.h"
53 const std::string& path,
66 std::shared_ptr<const Alphabet> alpha)
const = 0;
76 const std::string& path,
77 std::shared_ptr<const Alphabet> alpha)
const = 0;
114 const std::string& path,
127 std::shared_ptr<const Alphabet> alpha)
const = 0;
138 const std::string& path,
139 std::shared_ptr<const Alphabet> alpha)
const = 0;
174 const std::string& path,
184 virtual std::unique_ptr<ProbabilisticSequenceContainerInterface>
readSequences(
186 std::shared_ptr<const Alphabet> alpha)
const = 0;
195 virtual std::unique_ptr<ProbabilisticSequenceContainerInterface>
readSequences(
196 const std::string& path,
197 std::shared_ptr<const Alphabet> alpha)
const = 0;
235 const std::string& path,
247 std::shared_ptr<const Alphabet> alpha)
const = 0;
257 const std::string& path,
258 std::shared_ptr<const Alphabet> alpha)
const = 0;
The IAlignment interface.
virtual std::unique_ptr< SiteContainerInterface > readAlignment(const std::string &path, std::shared_ptr< const Alphabet > alpha) const =0
Create a new container from a file.
virtual void readAlignment(const std::string &path, SequenceContainerInterface &container) const =0
Create a new container from a file.
virtual void readAlignment(std::istream &input, SequenceContainerInterface &container) const =0
Add the content of a stream to a new container.
virtual std::unique_ptr< SiteContainerInterface > readAlignment(std::istream &input, std::shared_ptr< const Alphabet > alpha) const =0
Create a new container from a stream.
The IOProbabislisticSequence interface.
The IOSequence interface.
The IProbabilisticSequence interface.
virtual std::unique_ptr< ProbabilisticSiteContainerInterface > readAlignment(const std::string &path, std::shared_ptr< const Alphabet > alpha) const =0
Create a new container from a file.
virtual void readAlignment(const std::string &path, ProbabilisticSequenceContainerInterface &container) const =0
Create a new container from a file.
virtual std::unique_ptr< ProbabilisticSiteContainerInterface > readAlignment(std::istream &input, std::shared_ptr< const Alphabet > alpha) const =0
Create a new container from a stream.
virtual ~IProbabilisticAlignment()
IProbabilisticAlignment()
virtual void readAlignment(std::istream &input, ProbabilisticSequenceContainerInterface &container) const =0
Add the content of a stream to a new container.
The IProbabilisticSequence interface.
virtual ~IProbabilisticSequence()
virtual void readSequences(const std::string &path, ProbabilisticSequenceContainerInterface &container) const =0
Create a new container from a file.
virtual std::unique_ptr< ProbabilisticSequenceContainerInterface > readSequences(const std::string &path, std::shared_ptr< const Alphabet > alpha) const =0
Create a new container from a file.
virtual void readSequences(std::istream &input, ProbabilisticSequenceContainerInterface &container) const =0
Create a new container from a stream.
virtual std::unique_ptr< ProbabilisticSequenceContainerInterface > readSequences(std::istream &input, std::shared_ptr< const Alphabet > alpha) const =0
Create a new container from a stream.
virtual void readSequences(std::istream &input, SequenceContainerInterface &container) const =0
Create a new container from a stream.
virtual void readSequences(const std::string &path, SequenceContainerInterface &container) const =0
Create a new container from a file.
virtual std::unique_ptr< SequenceContainerInterface > readSequences(const std::string &path, std::shared_ptr< const Alphabet > alpha) const =0
Create a new container from a file.
virtual std::unique_ptr< SequenceContainerInterface > readSequences(std::istream &input, std::shared_ptr< const Alphabet > alpha) const =0
Create a new container from a stream.
The SequenceContainer interface.
This alphabet is used to deal NumericAlphabet.