Overview     Modules     Class Hierarchy     Classes     Members  
tlp::CSVInvertMatrixParser Class Reference

CSV parser used to invert the token matrix in order to treat rows as columns. More...

#include <CSVParser.h>

Inheritance diagram for tlp::CSVInvertMatrixParser:
Collaboration diagram for tlp::CSVInvertMatrixParser:

Public Member Functions

 CSVInvertMatrixParser (CSVParser *parser)
virtual ~CSVInvertMatrixParser ()
bool parse (CSVContentHandler *handler, tlp::PluginProgress *progress=NULL)
 Parse the data and send the tokens found to the CSVContentHandler.
void begin ()
void line (unsigned int row, const std::vector< std::string > &lineTokens)
void end (unsigned int rowNumber, unsigned int columnNumber)
- Public Member Functions inherited from tlp::CSVParser
virtual ~CSVParser ()
- Public Member Functions inherited from tlp::CSVContentHandler
virtual ~CSVContentHandler ()

Detailed Description

CSV parser used to invert the token matrix in order to treat rows as columns.

Constructor & Destructor Documentation

tlp::CSVInvertMatrixParser::CSVInvertMatrixParser ( CSVParser parser)
virtual tlp::CSVInvertMatrixParser::~CSVInvertMatrixParser ( )
virtual

Member Function Documentation

void tlp::CSVInvertMatrixParser::begin ( )
virtual

Function called at the beginning of the file parsing.

Implements tlp::CSVContentHandler.

void tlp::CSVInvertMatrixParser::end ( unsigned int  rowNumber,
unsigned int  columnNumber 
)
virtual

Function called at the end of the parsing.

Parameters
rowNumberthe number of row read in the file.
columnNumberThe column number for the line with the greatest column number.

Implements tlp::CSVContentHandler.

void tlp::CSVInvertMatrixParser::line ( unsigned int  row,
const std::vector< std::string > &  lineTokens 
)
virtual

Function called for each line in the file.

Parameters
rowThe number of the row.
lineTokensThe tokens.

Implements tlp::CSVContentHandler.

bool tlp::CSVInvertMatrixParser::parse ( CSVContentHandler handler,
tlp::PluginProgress *  progress = NULL 
)
virtual

Parse the data and send the tokens found to the CSVContentHandler.

Notify the progression of the parsing with the progress object.

Implements tlp::CSVParser.



Tulip Software by LaBRI Visualization Team    2001 - 2012