40 #ifndef _SEQUENCEFILEINDEX_H_ 41 #define _SEQUENCEFILEINDEX_H_ 44 #include <Bpp/Exceptions.h> 61 virtual void build(
const std::string& path)
throw (Exception) = 0;
66 virtual std::streampos
getSequencePosition(
const std::string&
id)
const throw (Exception) = 0;
75 #endif // _SEQUENCEFILEINDEX_H_ virtual ~SequenceFileIndex()
virtual std::streampos getSequencePosition(const std::string &id) const =0
Get the position of a Sequence given its ID.
This alphabet is used to deal NumericAlphabet.
virtual void build(const std::string &path)=0
Build the index given a path to the file.
virtual size_t getNumberOfSequences() const =0
Get the number of sequences.
Index to retrieve Sequence in a file.