Class
RecordReader
Buffer management for streams.
RecordReader | |||||||||||||||||||||||||||||
![]() | ![]() | ||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
Include Headers
seqan/stream.h
Parameters
The StreamConcept type to work on. | |
The record reader specialization to chose. |
Specializations
| Record reader specialization for double-pass reading. | |
| Record reader specialization for single-pass reading. |
Member Functions
| Constructor |
Functions
| Returns | |
| count characters in a line not including \r and \n | |
| Advance record reader to next position. | |
| check whether the data provided by reader is (one of) the specified format(s). | |
| Query whether the next record is of a given type. | |
| Returns the current position of the reader. | |
| reads an entire document from a StreamConcept, by the means of RecordReader | |
| Read characters from stream as long as characters are letters | |
| Read characters from stream as long as characters are digits | |
| Read characters from stream, as long as they are DNA5 characters. Skip over whitespaces. | |
| Read characters from stream as long as the number is a valid floating point numbers. | |
| Read characters from stream as long as characters are graph characters. | |
| Read characters from stream as long as characters are identifiers (alphanumeric, | |
| Read characters from stream as long as characters are letters | |
| Read a line from stream and save it to buffer | |
| Read a line from stream and save it to buffer, remove trailing blanks | |
| Read exactly n characters from stream into buffer | |
| Read n characters from stream into buffer, but skip certain Chars | |
| reads one record (e.g. a single DNA-sequence and its meta data) from a StreamConcept, by the means of RecordReader | |
| Read characters from stream into buffer until Blank is encountered | |
| Read characters from stream into buffer until Char is encountered | |
| Read characters from stream into buffer until one of the given characters is encountered | |
| Read characters from stream until a tab or line-break occurs. | |
| Read characters from stream into buffer until Whitespace is encountered | |
| Returns | |
| Returns the current position of the reader. | |
| Skip (i.e. read without saving) characters from stream until non-Blank is encountered | |
| Skip one character that must be equal to a given one for this function to succeed. | |
| Skip a line in stream and go to beginning of next | |
| Skip exactly n characters from stream | |
| Skip n characters from stream, not counting whitespaces | |
| Skip (i.e. read without saving) characters from stream until Blank is encountered | |
| Skip (i.e. read without saving) characters from stream until Char is encountered | |
| Skip (i.e. read without saving) characters from stream until printable, non-' ' character is encountered | |
| Skip input until the first graphical(see isgraph) character of a line is equal to c | |
| Skip input until a line begins with a one of the characters in str | |
| Skip input until a line begins with str. | |
| Skip (i.e. read without saving) characters from stream until String is encountered | |
| Skip (i.e. read without saving) characters from stream until Whitespace is encountered | |
| Skip (i.e. read without saving) characters from stream until non-Whitespace is encountered | |
| Returns the current value of the reader. |
Examples
File "record_reader.cpp"
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 |
See Also
SeqAn - Sequence Analysis Library - www.seqan.de
