31 #if defined(TableReader_RECURSES)
32 #error Recursive header files inclusion detected in TableReader.h
35 #define TableReader_RECURSES
37 #if !defined TableReader_h
45 #include "DGtal/base/Common.h"
46 #include "DGtal/geometry/curves/FreemanChain.h"
85 template <
typename TQuantity>
102 static std::vector<TQuantity>
104 unsigned int aPosition );
118 static std::vector<TQuantity>
130 static std::vector<std::vector<TQuantity>>
143 static std::vector<std::vector<TQuantity>>
155 #include "DGtal/io/readers/TableReader.ih"
163 #undef TableReader_RECURSES
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: Implements method to read a set of numbers represented in each line of a file.
static std::vector< TQuantity > getColumnElementsFromInputStream(std::istream &in, unsigned int aPosition)
static std::vector< TQuantity > getColumnElementsFromFile(const std::string &aFilename, unsigned int aPosition)
static std::vector< std::vector< TQuantity > > getLinesElementsFromFile(const std::string &aFilename)
static std::vector< std::vector< TQuantity > > getLinesElementsFromInputStream(std::istream &in)