UNIVERS
15.3
UNIVERS base processing software API
|
#include <textfile_parser.hpp>
Public Member Functions | |
void | set_delimeters (const char *delims) |
virtual void | register_parameter (Parameter *p) |
virtual void | parse (const char *fname) throw (param_exception, std::ios_base::failure, std::length_error) |
const char * | delims () const |
Class TextFileParser is used for reading text files with special format.
|
virtual |
This method parses file by given filename. It can throw three types of exceptions: param_exception - if syntax error occured during reading parameter, std::ios_base::failure - errors with reading file, std::length_error - if file conatains too long string.
|
virtual |
Adds specific parameter to parser. Note that this pointer will NOT be deleted in ~TextFileParser().
void TextFileParser::set_delimeters | ( | const char * | delims | ) |
Sets alternative delimeters for strings. (Default delimeters are space and tab characters)