Overview     Modules     Class Hierarchy     Classes     Members  

tlp::CSVContentHandler Class Reference

Interface to inherit to get and treat data from csv files with CSVParser object. More...

#include <CSVContentHandler.h>

Inheritance diagram for tlp::CSVContentHandler:

List of all members.

Public Member Functions

  • virtual ~CSVContentHandler ()
  • virtual void begin ()=0
  • virtual void token (unsigned int row, unsigned int column, const std::string &token)=0
  • virtual void end (unsigned int rowNumber, unsigned int columnNumber)=0

Detailed Description

Interface to inherit to get and treat data from csv files with CSVParser object.


Constructor & Destructor Documentation

virtual tlp::CSVContentHandler::~CSVContentHandler (  )  [inline, virtual]

Member Function Documentation

virtual void tlp::CSVContentHandler::begin (  )  [pure virtual]
virtual void tlp::CSVContentHandler::end ( unsigned int  rowNumber,
unsigned int  columnNumber 
) [pure virtual]

Function called at the end of the parsing.

Parameters:
rowNumber the number of row read in the file.
columnNumber The column number for the line with the greatest column number.

Implemented in tlp::AbstractCSVToGraphDataMapping, tlp::CSVToNewNodeIdMapping, tlp::CSVToGraphEdgeSrcTgtMapping, tlp::CSVGraphImport, tlp::CSVTableWidget, tlp::CSVImportConfigurationWidget, and tlp::CSVInvertMatrixParser.

virtual void tlp::CSVContentHandler::token ( unsigned int  row,
unsigned int  column,
const std::string &  token 
) [pure virtual]

Function called for each tokens found in the file.

Parameters:
row The row position of the token.
column The column position of the token.
token The token.

Implemented in tlp::AbstractCSVToGraphDataMapping, tlp::CSVToNewNodeIdMapping, tlp::CSVToGraphEdgeSrcTgtMapping, tlp::CSVGraphImport, tlp::CSVTableWidget, tlp::CSVImportConfigurationWidget, and tlp::CSVInvertMatrixParser.



Tulip Software by LaBRI Visualization Team    2001 - 2011