Alexandria
2.14.1
Please provide a description of the project.
|
Go to the documentation of this file.
25 #ifndef _TABLE_ASCIIREADER_H
26 #define _TABLE_ASCIIREADER_H
116 template <
typename StreamType,
typename... Args>
196 void skip(
long rows)
override;
virtual ~AsciiReader()=default
Destructor.
bool hasMoreRows() override
Implements the TableReader::hasMoreRows() contract.
AsciiReader & fixColumnNames(std::vector< std::string > column_names)
Overrides the automatically detected column names.
AsciiReader & setCommentIndicator(const std::string &indicator)
Set the comment indicator.
AsciiReader & operator=(AsciiReader &&)=default
std::vector< std::type_index > m_column_types
AsciiReader(std::istream &stream)
Constructs an AsciiReader which reads from the given stream.
static AsciiReader create(Args &&... args)
Constructs an AsciiReader which contains an object of type StreamType.
std::unique_ptr< InstOrRefHolder< std::istream > > m_stream_holder
Provides information about the columns of a Table.
std::shared_ptr< ColumnInfo > m_column_info
std::string getComment() override
std::size_t rowsLeft() override
Implements the TableReader::rowsLeft() contract.
void skip(long rows) override
Implements the TableReader::skip() contract.
const ColumnInfo & getInfo() override
Returns the column information of the table.
TableReader implementation for reading ASCII tables from streams.
Table readImpl(long rows) override
Reads the next rows into a Table.
Interface for classes reading tables.
std::vector< std::string > m_column_names
AsciiReader & fixColumnTypes(std::vector< std::type_index > column_types)
Overrides the automatically detected column types.