Removes lines at start or stop of input. More...
Classes | |
| struct | Criterion |
Public Member Functions | |
| StartStopManipulator () | |
| bool | accept (BufferStringSet &) const |
| if false returned, the row should not be written | |
Public Attributes | |
| Criterion | start_ |
| Criterion | stop_ |
Protected Member Functions | |
| void | updCount (const Criterion &, const BufferStringSet &) const |
| bool | isGEMatch (const Criterion &, const BufferStringSet &) const |
Protected Attributes | |
| bool | startdone_ |
| int | count_ |
Removes lines at start or stop of input.
Specify either a fixed number of lines, or an expression to match. For the stop_, the count is from the start and it determines how many records pass.
| Table::StartStopManipulator::StartStopManipulator | ( | ) | [inline] |
| bool Table::StartStopManipulator::accept | ( | BufferStringSet & | ) | const [virtual] |
if false returned, the row should not be written
Implements Table::Converter::RowManipulator.
| bool Table::StartStopManipulator::isGEMatch | ( | const Criterion & | , | |
| const BufferStringSet & | ||||
| ) | const [protected] |
| void Table::StartStopManipulator::updCount | ( | const Criterion & | , | |
| const BufferStringSet & | ||||
| ) | const [protected] |
int Table::StartStopManipulator::count_ [mutable, protected] |
bool Table::StartStopManipulator::startdone_ [mutable, protected] |
1.7.1