bpp-seq3
3.0.0
OSequenceStream.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_OSEQUENCESTREAM_H
6
#define BPP_SEQ_IO_OSEQUENCESTREAM_H
7
8
#include <
Bpp/Exceptions.h
>
9
10
#include "../Alphabet/Alphabet.h"
11
#include "../Sequence.h"
12
#include "
IoSequenceStream.h
"
13
14
namespace
bpp
15
{
23
template
<
class
SequenceType>
24
class
TemplateOSequenceStream
:
25
public
virtual
IOSequenceStream
26
{
27
public
:
28
TemplateOSequenceStream
() {}
29
virtual
~TemplateOSequenceStream
() {}
30
31
public
:
41
virtual
void
writeSequence
(std::ostream& output,
const
SequenceType& seq)
const
= 0;
42
};
43
44
using
OSequenceStream
=
TemplateOSequenceStream<Sequence>
;
45
using
OSequenceWithQualityStream
=
TemplateOSequenceStream<SequenceWithQuality>
;
46
using
OProbabilisticSequenceStream
=
TemplateOSequenceStream<ProbabilisticSequence>
;
47
}
// end of namespace bpp.
48
#endif
// BPP_SEQ_IO_OSEQUENCESTREAM_H
Exceptions.h
IoSequenceStream.h
bpp::IOSequenceStream
The IOSequenceStream interface.
Definition:
IoSequenceStream.h:21
bpp::TemplateOSequenceStream
The OSequenceStream interface.
Definition:
OSequenceStream.h:26
bpp::TemplateOSequenceStream::~TemplateOSequenceStream
virtual ~TemplateOSequenceStream()
Definition:
OSequenceStream.h:29
bpp::TemplateOSequenceStream::TemplateOSequenceStream
TemplateOSequenceStream()
Definition:
OSequenceStream.h:28
bpp::TemplateOSequenceStream::writeSequence
virtual void writeSequence(std::ostream &output, const SequenceType &seq) const =0
Read sequence from stream.
bpp
This alphabet is used to deal NumericAlphabet.
Bpp
Seq
Io
OSequenceStream.h
Generated on Fri Jul 19 2024 12:16:01 for bpp-seq3 by
1.9.1