libsequence  1.9.5
Fasta.hpp
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2003-2009 Kevin Thornton, krthornt[]@[]uci.edu
4 
5 Remove the brackets to email me.
6 
7 This file is part of libsequence.
8 
9 libsequence is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13 
14 libsequence is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 long with libsequence. If not, see <http://www.gnu.org/licenses/>.
21 
22 */
23 
42 #ifndef FASTA_H
43 #define FASTA_H
44 
45 #include <Sequence/Seq.hpp>
46 
47 namespace Sequence
48  {
49  class Fasta : public Seq
50  {
51  private:
52  public:
53  using Seq::Seq;
54  Fasta();
55  Fasta (const Seq & s);
56  Fasta( Fasta && ) = default;
57  Fasta( Seq && );
58  Fasta( const Fasta & ) = default;
59  ~Fasta() {}
60  Fasta & operator=(Fasta &&) = default;
61  Fasta & operator=(const Fasta &) = default;
69  std::istream& read(std::istream &s);
74  std::ostream& print(std::ostream& s) const;
75  };
76 }
77 #endif
class Sequence::Seq, an abstract base class for Sequences
std::ostream & print(std::ostream &s) const
Definition: Fasta.cc:66
FASTA sequence stream.
Definition: Fasta.hpp:49
Abstract interface to sequence objects.
Definition: Seq.hpp:46
The namespace in which this library resides.
std::istream & read(std::istream &s)
Definition: Fasta.cc:41
Seq(void)
Definition: Seq.cc:32