Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

Table::StartStopManipulator Class Reference

Removes lines at start or stop of input. More...

Inheritance diagram for Table::StartStopManipulator:
Table::Converter::RowManipulator

List of all members.

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_

Detailed Description

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.


Constructor & Destructor Documentation

Table::StartStopManipulator::StartStopManipulator (  )  [inline]

Member Function Documentation

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]

Member Data Documentation

int Table::StartStopManipulator::count_ [mutable, protected]
bool Table::StartStopManipulator::startdone_ [mutable, protected]