bpp-seq3  3.0.0
GenBank.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_GENBANK_H
6 #define BPP_SEQ_IO_GENBANK_H
7 
8 
9 #include "../Container/SequenceContainer.h"
10 #include "../Container/VectorSequenceContainer.h"
11 #include "../Sequence.h"
12 #include "AbstractISequence.h"
13 
14 namespace bpp
15 {
21 class GenBank :
22  public AbstractISequence
23 {
24 public:
28  GenBank() {}
29 
30  virtual ~GenBank() {}
31 
32 public:
38  void appendSequencesFromStream(std::istream& input, SequenceContainerInterface& sc) const;
46  const std::string getFormatName() const { return "GenBank file"; }
47  const std::string getFormatDescription() const
48  {
49  return "Sequences following the GenBank data base format.";
50  }
52 };
53 } // end of namespace bpp.
54 #endif // BPP_SEQ_IO_GENBANK_H
Partial implementation of the ISequence interface.
The GenBank sequence file format.
Definition: GenBank.h:23
const std::string getFormatDescription() const
Definition: GenBank.h:47
void appendSequencesFromStream(std::istream &input, SequenceContainerInterface &sc) const
Append sequences to a container from a stream.
Definition: GenBank.cpp:15
const std::string getFormatName() const
Definition: GenBank.h:46
GenBank()
Build a new GenBank object.
Definition: GenBank.h:28
virtual ~GenBank()
Definition: GenBank.h:30
The SequenceContainer interface.
This alphabet is used to deal NumericAlphabet.