DGtal 1.4.0
|
Aim: Implements method to read a set of numbers represented in each line of a file. More...
#include <DGtal/io/readers/TableReader.h>
Static Public Member Functions | |
static std::vector< TQuantity > | getColumnElementsFromFile (const std::string &aFilename, unsigned int aPosition) |
static std::vector< TQuantity > | getColumnElementsFromInputStream (std::istream &in, unsigned int aPosition) |
static std::vector< std::vector< TQuantity > > | getLinesElementsFromFile (const std::string &aFilename) |
static std::vector< std::vector< TQuantity > > | getLinesElementsFromInputStream (std::istream &in) |
Aim: Implements method to read a set of numbers represented in each line of a file.
Description of class 'TableReader'
The main method to read a set of numbers where each number is given in a single line. Each elements are identified between space or tab characters. Blank line or line beginning with "#" are skipped.
Simple example:
and you can specifying the point position:
TQuantity | the type fo the integer to be read. |
Definition at line 86 of file TableReader.h.
|
static |
Method to import a vector containing a list of elements given in an input stream. One element is extracted on each line of the input stream. Each elements are identified between space or tab characters. Blank line or line beginning with "#" are skipped.
aFilename | a file name |
aPosition | the position of indices where the element has to be extracted. |
Referenced by testNumberReader().
|
static |
Method to import a vector containing a list of elements given in a file. One element is extracted on each line of the input file. Each elements are identified between space or tab characters. Blank line or line beginning with "#" are skipped.
in | the input file. |
aPosition | the position of indices where the elements has to be extracted. |
|
static |
Method to import a vector where each element contains the line elements of a given file. Each elements are identified between space or tab characters. Blank line or line beginning with "#" are skipped.
aFilename | the input file. |
Referenced by testNumberReader().
|
static |
Method to import a vector where each element contains the line elements of a given file. Each elements are identified between space or tab characters. Blank line or line beginning with "#" are skipped.
in | the input file. |