Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
AsciiReaderHelper.h File Reference
#include <istream>
#include <map>
#include <string>
#include <typeindex>
#include "ElementsKernel/Export.h"
#include "Table/Row.h"
Include dependency graph for AsciiReaderHelper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Euclid::Table::StreamRewinder
 This class gets a stream as argument during construction and when it is deleted it sets the position of the stream back to where it was during the constructor call. More...
 

Namespaces

namespace  Euclid
 
namespace  Euclid::Table
 

Functions

size_t Euclid::Table::countColumns (std::istream &in, const std::string &comment)
 Returns the number of whitespace separated tokens of the first non commented line.
 
std::map< std::string, ColumnDescriptionEuclid::Table::autoDetectColumnDescriptions (std::istream &in, const std::string &comment)
 Reads the column descriptions of the given stream.
 
std::vector< std::stringEuclid::Table::autoDetectColumnNames (std::istream &in, const std::string &comment, size_t columns_number)
 Reads the column names of the given stream.
 
Row::cell_type Euclid::Table::convertToCellType (const std::string &value, std::type_index type)
 Converts the given value to a Row::cell_type of the given type.
 
bool Euclid::Table::hasNextRow (std::istream &in, const std::string &comment)
 
std::size_t Euclid::Table::countRemainingRows (std::istream &in, const std::string &comment)
 
std::vector< std::stringEuclid::Table::splitLine (std::string line, const std::string &comment)
 
std::vector< std::stringEuclid::Table::firstDataLine (std::istream &in, const std::string &comment)
 
std::pair< std::type_index, std::size_tEuclid::Table::guessColumnType (const std::string &token)
 

Detailed Description

Date
April 15, 2014
Author
Nikolaos Apostolakos

Definition in file AsciiReaderHelper.h.