Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
AsciiReaderHelper.cpp File Reference
#include "AsciiReaderHelper.h"
#include "ElementsKernel/Exception.h"
#include "ElementsKernel/Logging.h"
#include "NdArray/NdArray.h"
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/spirit/include/qi.hpp>
#include <boost/tokenizer.hpp>
#include <set>
#include <sstream>
Include dependency graph for AsciiReaderHelper.cpp:

Go to the source code of this file.

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::type_index Euclid::Table::keywordToType (const std::string &keyword)
 
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)
 

Variables

static Elements::Logging Euclid::Table::logger = Elements::Logging::getLogger("AsciiReader")
 
const std::vector< std::pair< std::string, std::type_index > > Euclid::Table::KeywordTypeMap
 
const std::map< std::type_index, std::function< Row::cell_type(const std::string &)> > Euclid::Table::sCellConverter
 

Detailed Description

Date
April 15, 2014
Author
Nikolaos Apostolakos

Definition in file AsciiReaderHelper.cpp.