// FastaWriter.hpp #if !defined(FASTA_WRITER_HPP) #define FASTA_WRITER_HPP #include #include namespace NGBW { struct FastaRecord { void clear() throw() { identity.clear(); organism.clear(); description.clear(); sequence.clear(); } std::string identity; std::string organism; std::string description; std::string sequence; }; class FastaWriter { public: FastaWriter(const char *dataset, std::ostream &output) throw() : m_dataset(dataset), m_output(output) { m_output.exceptions(std::ios_base::badbit); } ~FastaWriter() throw() { } void Write(FastaRecord &record) throw(std::ios_base::failure); private: std::string m_dataset; std::ostream &m_output; }; } // namespace NGBW #endif // FASTA_WRITER_HPP