All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SIM_DataFilterNth Class Reference

#include <SIM_DataFilter.h>

+ Inheritance diagram for SIM_DataFilterNth:

Public Member Functions

 SIM_DataFilterNth (const SIM_DataFilter &filter, int n)
 ~SIM_DataFilterNth () override
 SIM_DataFilterNth (const SIM_DataFilterNth &src)
bool acceptData (const SIM_Data *data, const char *dataname) const override
- Public Member Functions inherited from SIM_DataFilter
 SIM_DataFilter ()
virtual ~SIM_DataFilter ()
 SIM_DataFilter (const SIM_DataFilter &)

Detailed Description

This implementation accepts the Nth data accepted by some other filter. The nth time data is accepted by this secondary filter, this filter accepts the data. All subsequent data is immediately rejected.

Note: in typical C++ fashion, n starts at zero.

Definition at line 154 of file SIM_DataFilter.h.

Constructor & Destructor Documentation

SIM_DataFilterNth::SIM_DataFilterNth ( const SIM_DataFilter filter,
int  n 

Definition at line 157 of file SIM_DataFilter.h.

SIM_DataFilterNth::~SIM_DataFilterNth ( )

Definition at line 162 of file SIM_DataFilter.h.

SIM_DataFilterNth::SIM_DataFilterNth ( const SIM_DataFilterNth src)

Definition at line 164 of file SIM_DataFilter.h.

Member Function Documentation

bool SIM_DataFilterNth::acceptData ( const SIM_Data data,
const char *  dataname 
) const

Override this function to decide what data is accepted and what is rejected. The name parameter is the path of the data relative to the root of the search that is calling this filter.

Implements SIM_DataFilter.

Definition at line 171 of file SIM_DataFilter.h.

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