5 #ifndef BPP_PHYL_IO_IOSUBSTITUTIONMODEL_H
6 #define BPP_PHYL_IO_IOSUBSTITUTIONMODEL_H
9 #include "../Model/SubstitutionModel.h"
21 class TransitionModelInterface;
22 class SubstitutionModelInterface;
35 virtual const std::string
getDataType()
const {
return "Substitution Model"; }
62 std::shared_ptr<const Alphabet> alphabet,
63 const std::string& modelDescription,
64 const std::map<
size_t, std::shared_ptr<const AlignmentDataInterface>>& mData,
66 bool parseArguments =
true) = 0;
98 std::map<std::string, std::string>& globalAliases,
99 std::vector<std::string>& writtenNames)
const = 0;
Interface for all Branch models.
General interface for model readers.
virtual ~ISubstitutionModel()
virtual std::unique_ptr< SubstitutionModelInterface > readSubstitutionModel(std::shared_ptr< const Alphabet > alphabet, const std::string &modelDescription, const std::map< size_t, std::shared_ptr< const AlignmentDataInterface >> &mData, size_t nData, bool parseArguments=true)=0
Read a substitution model from a string.
virtual const std::map< std::string, std::string > & getUnparsedArguments() const =0
General interface for model I/O.
virtual ~IoSubstitutionModel()
virtual const std::string getDataType() const
General interface for distance matrix writers.
virtual void write(const BranchModelInterface &model, OutputStream &out, std::map< std::string, std::string > &globalAliases, std::vector< std::string > &writtenNames) const =0
Write a substitution model to a stream.
virtual ~OSubstitutionModel()
Defines the basic types of data flow nodes.