HDK
 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)
 
virtual ~SIM_DataFilterNth ()
 
 SIM_DataFilterNth (const SIM_DataFilterNth &src)
 
virtual bool acceptData (const SIM_Data *data, const char *dataname) const
 
- 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 
)
inlineexplicit

Definition at line 157 of file SIM_DataFilter.h.

virtual SIM_DataFilterNth::~SIM_DataFilterNth ( )
inlinevirtual

Definition at line 162 of file SIM_DataFilter.h.

SIM_DataFilterNth::SIM_DataFilterNth ( const SIM_DataFilterNth src)
inline

Definition at line 164 of file SIM_DataFilter.h.

Member Function Documentation

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

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: