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

DelimitedFieldParser that parses a variable length list of values separated by its own delimiter (distinct from the field delimiter). More...

#include <DelimitedLineParser.hpp>

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

List of all members.

Public Member Functions

 ValueVectorField (const std::string &name, char delimiter, std::vector< Value > *val)
void parse (const char *first, const char *last)
 Called once per field by DelimitedLineParser.

Detailed Description

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

DelimitedFieldParser that parses a variable length list of values separated by its own delimiter (distinct from the field delimiter).

Each token is assumed to be of the same type and is parsed by cgatools::util::parseValue. Results are stored in an std::vector.


Member Function Documentation

template<typename Value >
void cgatools::util::ValueVectorField< 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