fw4spl
fwGdcmIO::helper::CsvIO Class Reference

Read CSV file and returns parsed tokens. The input file is supposed to use comma separator, but another separator can be used when reading file. More...

#include <CsvIO.hpp>

Public Types

typedef std::vector< std::string > TokenContainerType
 Containers to store parsed tokens.
 

Public Member Functions

FWGDCMIO_API CsvIO (std::istream &csvStream)
 Constructor. More...
 
virtual FWGDCMIO_API ~CsvIO ()
 Desctructor.
 
FWGDCMIO_API TokenContainerType getLine (const std::string &separator=",")
 Returns tokens on next line to read, using comma separator. More...
 

Detailed Description

Read CSV file and returns parsed tokens. The input file is supposed to use comma separator, but another separator can be used when reading file.

Definition at line 26 of file CsvIO.hpp.

Constructor & Destructor Documentation

fwGdcmIO::helper::CsvIO::CsvIO ( std::istream &  csvStream)

Constructor.

Parameters
csvStreamthe stream to read

Definition at line 24 of file CsvIO.cpp.

Member Function Documentation

CsvIO::TokenContainerType fwGdcmIO::helper::CsvIO::getLine ( const std::string &  separator = ",")

Returns tokens on next line to read, using comma separator.

Other sperators can be used

Parameters
separatortorken separator
Returns
tokens found on next line separated with given characters

Definition at line 42 of file CsvIO.cpp.

Referenced by fwGdcmIO::helper::SegmentedPropertyRegistry::SegmentedPropertyRegistry().

+ Here is the caller graph for this function:


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