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

Manage all the CSV import process. Use the mapping object to find the graph element in function of the row and the propertiesManager to find the property corresponding to the column. The import parameters are used to filter the rows and the columns to import. More...

#include <CSVGraphImport.h>

Inheritance diagram for tlp::CSVGraphImport:
Collaboration diagram for tlp::CSVGraphImport:

Public Member Functions

 CSVGraphImport (CSVToGraphDataMapping *mapping, CSVImportColumnToGraphPropertyMapping *propertiesManager, const CSVImportParameters &importParameters)
virtual ~CSVGraphImport ()
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::CSVContentHandler
virtual ~CSVContentHandler ()

Protected Attributes

CSVToGraphDataMappingmapping
CSVImportColumnToGraphPropertyMappingpropertiesManager
CSVImportParameters importParameters

Detailed Description

Manage all the CSV import process. Use the mapping object to find the graph element in function of the row and the propertiesManager to find the property corresponding to the column. The import parameters are used to filter the rows and the columns to import.

Constructor & Destructor Documentation

tlp::CSVGraphImport::CSVGraphImport ( CSVToGraphDataMapping mapping,
CSVImportColumnToGraphPropertyMapping propertiesManager,
const CSVImportParameters importParameters 
)
virtual tlp::CSVGraphImport::~CSVGraphImport ( )
virtual

Member Function Documentation

void tlp::CSVGraphImport::begin ( )
virtual

Function called at the beginning of the file parsing.

Implements tlp::CSVContentHandler.

void tlp::CSVGraphImport::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::CSVGraphImport::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.

Member Data Documentation

CSVImportParameters tlp::CSVGraphImport::importParameters
protected
CSVToGraphDataMapping* tlp::CSVGraphImport::mapping
protected
CSVImportColumnToGraphPropertyMapping* tlp::CSVGraphImport::propertiesManager
protected


Tulip Software by LaBRI Visualization Team    2001 - 2012