UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
TextFileParser Class Reference

#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
 

Detailed Description

Class TextFileParser is used for reading text files with special format.

Member Function Documentation

virtual void TextFileParser::parse ( const char *  fname)
throw (param_exception,
std::ios_base::failure,
std::length_error
)
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 void TextFileParser::register_parameter ( Parameter p)
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)


The documentation for this class was generated from the following file: