GEOS
Classes | Public Types | Public Member Functions | List of all members
geos::TableData Class Reference

Class for managing table data. More...

#include <TableData.hpp>

Classes

struct  CellData
 Representing a data in TableData. More...
 

Public Types

using DataRows = stdVector< stdVector< CellData > >
 Alias for table data rows with cells values.
 

Public Member Functions

bool operator< (TableData const &other) const
 Lexicographic sorting. More...
 
template<typename ... Args>
void addRow (Args const &... args)
 Add a row to the table. The values passed to addRow (can be any type). More...
 
void addRow (stdVector< CellData > const &row)
 Add a row to the table. More...
 
void addSeparator ()
 Add a line separator to the table You must have filled values in TableData before using it.
 
void clear ()
 Reset data in the table.
 
void clearErrors ()
 Remove all errors.
 
stdVector< stdVector< CellData > > const & getTableDataRows () const
 
stdVector< string > const & getErrorMsgs () const
 Get all error messages. More...
 
DataRows const & getCellsData () const
 
bool operator== (TableData const &comparingTable) const
 Comparison operator for data rows. More...
 
TableErrorListing const & getErrorsList () const
 Get all error messages. More...
 
TableErrorListinggetErrorsList ()
 Get all error messages. More...
 

Detailed Description

Class for managing table data.

Definition at line 34 of file TableData.hpp.

Member Function Documentation

◆ addRow() [1/2]

template<typename ... Args>
void geos::TableData::addRow ( Args const &...  args)

Add a row to the table. The values passed to addRow (can be any type).

Parameters
argsCellData values to be added to the row.

Definition at line 267 of file TableData.hpp.

◆ addRow() [2/2]

void geos::TableData::addRow ( stdVector< CellData > const &  row)

Add a row to the table.

Parameters
rowA vector of string representing a row

◆ getCellsData()

DataRows const& geos::TableData::getCellsData ( ) const
inline
Returns
The const table data rows

Definition at line 128 of file TableData.hpp.

◆ getErrorMsgs()

stdVector< string > const& geos::TableData::getErrorMsgs ( ) const

Get all error messages.

Returns
The vector of error messages

◆ getErrorsList() [1/2]

TableErrorListing& geos::TableData::getErrorsList ( )
inline

Get all error messages.

Returns
The list of error messages

Definition at line 153 of file TableData.hpp.

◆ getErrorsList() [2/2]

TableErrorListing const& geos::TableData::getErrorsList ( ) const
inline

Get all error messages.

Returns
The list of error messages

Definition at line 146 of file TableData.hpp.

◆ getTableDataRows()

stdVector< stdVector< CellData > > const& geos::TableData::getTableDataRows ( ) const
Returns
The rows of the table

◆ operator<()

bool geos::TableData::operator< ( TableData const &  other) const

Lexicographic sorting.

Parameters
otherThe table data to compate
Returns
true

◆ operator==()

bool geos::TableData::operator== ( TableData const &  comparingTable) const
inline

Comparison operator for data rows.

Parameters
comparingTableThe tableData values to compare
Returns
The comparison result

Definition at line 136 of file TableData.hpp.


The documentation for this class was generated from the following file: