29#include <boost/lexical_cast.hpp>
31#if BOOST_VERSION < 107300
32#include <boost/io/detail/quoted_manip.hpp>
34#include <boost/io/quoted.hpp>
40using NdArray::NdArray;
55 auto column_info = table.getColumnInfo();
56 for (
size_t i = 0; i < column_info->size(); ++i) {
57 sizes.push_back(
quoted(column_info->getDescription(i).name).
size());
59 for (
const auto& row : table) {
60 for (
size_t i = 0; i < sizes.size(); ++i) {
70 if (!regex_match(str, whitespace_quotes))
73 q << boost::io::quoted(str);
std::vector< size_t > calculateColumnLengths(const Table &table)
Calculates the sizes in characters each column of the table needs.
const std::vector< std::pair< std::string, std::type_index > > KeywordTypeMap
std::string quoted(const std::string &str)
std::string typeToKeyword(std::type_index type)
Converts a type to its string representation.