cgatools::util::ValueField< Value > Class Template Reference

A DelimitedFieldParser that uses cgatools::util::parseValue to parse its value. More...

#include <DelimitedLineParser.hpp>

Inheritance diagram for cgatools::util::ValueField< Value >:
cgatools::util::DelimitedFieldParser

List of all members.

Public Member Functions

 ValueField (const std::string &name, Value *val)
void parse (const char *first, const char *last)
 Called once per field by DelimitedLineParser.
ValueField< Value > & exception (const std::string &key, const Value &val)
 Add an exception, such that if the field equals key, set the value to val.

Detailed Description

template<typename Value>
class cgatools::util::ValueField< Value >

A DelimitedFieldParser that uses cgatools::util::parseValue to parse its value.


Member Function Documentation

template<typename Value >
ValueField<Value>& cgatools::util::ValueField< Value >::exception ( const std::string &  key,
const Value &  val 
) [inline]

Add an exception, such that if the field equals key, set the value to val.

template<typename Value >
void cgatools::util::ValueField< Value >::parse ( const char *  first,
const char *  last 
) [inline, virtual]

Called once per field by DelimitedLineParser.

Parameters:
first The first char of the field.
last One past the end of the field. When parse is called, *last is the null character.

Implements cgatools::util::DelimitedFieldParser.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated by  doxygen 1.6.2