Overview     Modules     Class Hierarchy     Classes     Members  

tlp::CSVToNewNodeIdMapping Class Reference

Map each row of the CSV file on a new node. More...

#include <CSVGraphImport.h>

Inheritance diagram for tlp::CSVToNewNodeIdMapping:
Collaboration diagram for tlp::CSVToNewNodeIdMapping:

List of all members.

Public Member Functions

  • CSVToNewNodeIdMapping (tlp::Graph *graph)
  • std::pair< tlp::ElementType,
    unsigned int > getElementForRow (unsigned int row)
    Return the graph element corresponding to the row.
  • void begin ()
  • void token (unsigned int row, unsigned int column, const std::string &token)
  • void end (unsigned int rowNumber, unsigned int columnNumber)

Detailed Description

Map each row of the CSV file on a new node.


Constructor & Destructor Documentation

tlp::CSVToNewNodeIdMapping::CSVToNewNodeIdMapping ( tlp::Graph *  graph  ) 

Member Function Documentation

void tlp::CSVToNewNodeIdMapping::begin (  )  [virtual]

Function called at the beginning of the file parsing.

Implements tlp::CSVContentHandler.

void tlp::CSVToNewNodeIdMapping::end ( unsigned int  rowNumber,
unsigned int  columnNumber 
) [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.

Implements tlp::CSVContentHandler.

std::pair<tlp::ElementType,unsigned int> tlp::CSVToNewNodeIdMapping::getElementForRow ( unsigned int  row  )  [virtual]

Return the graph element corresponding to the row.

Implements tlp::CSVToGraphDataMapping.

void tlp::CSVToNewNodeIdMapping::token ( unsigned int  row,
unsigned int  column,
const std::string &  token 
) [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.

Implements tlp::CSVContentHandler.



Tulip Software by LaBRI Visualization Team    2001 - 2011