Tulip
4.1.0
Better Visualization Through Research
Main Page
Related Pages
Modules
Classes
Files
Examples
File List
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
Properties
Groups
Pages
CSVContentHandler.h
1
/*
2
*
3
* This file is part of Tulip (www.tulip-software.org)
4
*
5
* Authors: David Auber and the Tulip development Team
6
* from LaBRI, University of Bordeaux 1 and Inria Bordeaux - Sud Ouest
7
*
8
* Tulip is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU Lesser General Public License
10
* as published by the Free Software Foundation, either version 3
11
* of the License, or (at your option) any later version.
12
*
13
* Tulip is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
* See the GNU General Public License for more details.
17
*
18
*/
19
///@cond DOXYGEN_HIDDEN
20
21
#ifndef CSVCONTENTHANDLER_H_
22
#define CSVCONTENTHANDLER_H_
23
#include <string>
24
#include <tulip/tulipconf.h>
25
namespace
tlp {
26
/**
27
* @brief Interface to inherit to get and treat data from csv files with CSVParser object.
28
*/
29
class
TLP_QT_SCOPE CSVContentHandler {
30
public
:
31
virtual
~CSVContentHandler() {
32
33
}
34
/**
35
* Function called at the beginning of the file parsing.
36
*/
37
virtual
void
begin() = 0;
38
39
/**
40
* Function called for each line in the file.
41
* @param row The number of the row.
42
* @param lineTokens The tokens.
43
*/
44
virtual
void
line(
unsigned
int
row,
const
std::vector<std::string>& lineTokens) = 0;
45
46
/**
47
* Function called at the end of the parsing.
48
* @param rowNumber the number of row read in the file.
49
* @param columnNumber The column number for the line with the greatest column number.
50
*/
51
virtual
void
end(
unsigned
int
rowNumber,
unsigned
int
columnNumber) = 0;
52
};
53
}
54
#endif
/* CSVCONTENTHANDLER_H_ */
55
///@endcond
library
tulip-gui
include
tulip
CSVContentHandler.h
Generated on Mon Oct 22 2012 08:10:10 for Tulip by
1.8.2