// PdbSeqresParser.hpp #if !defined(PDB_SEQRES_PARSER_HPP) #define PDB_SEQRES_PARSER_HPP #include #include "Parser.hpp" #include "Reader.hpp" namespace NGBW { struct PdbSeqresRecord { void clear() throw() { protein_id.clear(); chain_id.clear(); length.clear(); sequence.clear(); } std::string protein_id; std::string chain_id; std::string length; std::string sequence; }; class PdbSeqresParser : public Parser { public: PdbSeqresParser(Reader &input) throw() : Parser(input) { } ~PdbSeqresParser() throw() { } bool Parse(PdbSeqresRecord &record); private: void ParseHeader(PdbSeqresRecord &record); }; } // namespace NGBW #endif // PDB_SEQRES_PARSER_HPP