librostlab-blast
1.0.1
|
Blast (default, -m 0) output parser. More...
#include <blast-parser-driver.h>
Public Types | |
typedef rostlab::blast::result | result_type |
Public Member Functions | |
parser_driver (FILE *__istream=stdin, const std::string &__istream_name="stdin") | |
virtual | ~parser_driver () |
const result_type & | parse (bool __trace_parsing=false, bool __trace_scanning=false) throw (rostlab::blast::parser_error) |
Parse one result from the input stream. More... | |
bool | trace_scanning () |
Get tracing of scanning. More... | |
void | trace_scanning (bool __b) |
Set tracing of scanning. More... | |
void | error (const rostlab::blast::location &__loc, const std::string __msg) |
Print error message for given location. More... | |
void | error (const std::string __msg) |
Print error message. More... | |
const result_type & | result () const |
Read-only access to results. More... | |
Friends | |
class | rostlab::blast::parser |
Blast (default, -m 0) output parser.
Example:
Definition at line 59 of file blast-parser-driver.h.
Definition at line 63 of file blast-parser-driver.h.
|
inline |
Definition at line 79 of file blast-parser-driver.h.
|
inlinevirtual |
Definition at line 83 of file blast-parser-driver.h.
|
inline |
Print error message for given location.
Definition at line 99 of file blast-parser-driver.h.
|
inline |
Print error message.
Definition at line 105 of file blast-parser-driver.h.
const result_type& rostlab::blast::parser_driver::parse | ( | bool | __trace_parsing = false , |
bool | __trace_scanning = false |
||
) | |||
throw | ( | rostlab::blast::parser_error | |
) |
Parse one result from the input stream.
Each call returns a reference to the filled result structure. The structure may be empty in case there are no more results in the stream.
|
inline |
Read-only access to results.
This method provides access to the last parsed results or an empty result structure if parse() was not yet called.
Definition at line 113 of file blast-parser-driver.h.
bool rostlab::blast::parser_driver::trace_scanning | ( | ) |
Get tracing of scanning.
void rostlab::blast::parser_driver::trace_scanning | ( | bool | __b | ) |
Set tracing of scanning.
|
friend |
Definition at line 60 of file blast-parser-driver.h.