Confdump Agent
1.4.0
|
Helper class to configure the parsing. More...
#include <FixedTable.hpp>
Classes | |
struct | ColumnHead |
Info about a column in the header line. More... | |
Public Types | |
typedef std::vector < ColumnHead >::const_iterator | ColumnHeadIterator |
Public Member Functions | |
Specification () | |
~Specification () | |
bool | hasHeader () const |
Is the first line a list of the column names, aligned with them (always yes for now) | |
ParsingMode | parsingMode () const |
Which algorithm to use to parse the table (always use the specified column heads for now) | |
Platform | platform () const |
Which plateform the software is running on (always Linux for now) | |
Specification & | addColumnHead (const std::string &name, unsigned skip, unsigned width) |
Required when using ParsingMode::UseSpecifiedHeaders, see ColumnHead for details. | |
ColumnHeadIterator | columnHeadsBegin () const |
ColumnHeadIterator | columnHeadsEnd () const |
Private Attributes | |
std::vector< ColumnHead > | columnHeads_ |
Helper class to configure the parsing.
Definition at line 69 of file FixedTable.hpp.
typedef std::vector<ColumnHead>::const_iterator Confdump::System::FixedTable::Specification::ColumnHeadIterator |
Definition at line 97 of file FixedTable.hpp.
Definition at line 187 of file FixedTable.cpp.
Definition at line 191 of file FixedTable.cpp.
FixedTable::Specification & Confdump::System::FixedTable::Specification::addColumnHead | ( | const std::string & | name, |
unsigned | skip, | ||
unsigned | width | ||
) |
Required when using ParsingMode::UseSpecifiedHeaders, see ColumnHead for details.
Definition at line 195 of file FixedTable.cpp.
References Confdump::System::FixedTable::Specification::ColumnHead::name, Confdump::System::FixedTable::Specification::ColumnHead::skip, and Confdump::System::FixedTable::Specification::ColumnHead::width.
FixedTable::Specification::ColumnHeadIterator Confdump::System::FixedTable::Specification::columnHeadsBegin | ( | ) | const |
Definition at line 207 of file FixedTable.cpp.
Referenced by Confdump::System::FixedTable::checkColumnPositionsFromSpecification().
FixedTable::Specification::ColumnHeadIterator Confdump::System::FixedTable::Specification::columnHeadsEnd | ( | ) | const |
Definition at line 212 of file FixedTable.cpp.
Referenced by Confdump::System::FixedTable::checkColumnPositionsFromSpecification().
bool Confdump::System::FixedTable::Specification::hasHeader | ( | ) | const [inline] |
Is the first line a list of the column names, aligned with them (always yes for now)
Definition at line 76 of file FixedTable.hpp.
Referenced by Confdump::System::FixedTable::readAllInto().
ParsingMode Confdump::System::FixedTable::Specification::parsingMode | ( | ) | const [inline] |
Which algorithm to use to parse the table (always use the specified column heads for now)
Definition at line 78 of file FixedTable.hpp.
References Confdump::System::FixedTable::UseSpecifiedHeaders.
Referenced by Confdump::System::FixedTable::readHeaderFrom().
Platform Confdump::System::FixedTable::Specification::platform | ( | ) | const [inline] |
Which plateform the software is running on (always Linux for now)
Definition at line 81 of file FixedTable.hpp.
References Confdump::System::FixedTable::Linux.
Referenced by Confdump::System::FixedTable::readAllInto().
std::vector<ColumnHead> Confdump::System::FixedTable::Specification::columnHeads_ [private] |
Definition at line 102 of file FixedTable.hpp.