EPICS ARCHIVER V4
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups
Public Member Functions | List of all members
TimeFilter Class Reference

A filter to remove samples that go back in time or are too futuristic. More...

#include <TimeFilter.h>

Inheritance diagram for TimeFilter:
ProcessVariableFilter ProcessVariableListener ProcessVariableStateListener ProcessVariableValueListener

Public Member Functions

 TimeFilter (const EngineConfig &config, ProcessVariableListener *listener)
 Construct filter, using config to determine what's too futuristic. More...
 
void pvValue (ProcessVariable &pv, const RawValue::Data *data)
 React to new value and filter it. More...
 
- Public Member Functions inherited from ProcessVariableFilter
 ProcessVariableFilter (ProcessVariableListener *listener)
 Create a PV filter which passes filtered events on to the provided listener.
 
virtual void pvConnected (ProcessVariable &pv, const epicsTime &when)
 React to connection, then pass on to listener. More...
 
virtual void pvDisconnected (ProcessVariable &pv, const epicsTime &when)
 React to disconnect, then pass on to listener. More...
 
- Public Member Functions inherited from ProcessVariableStateListener
virtual ~ProcessVariableStateListener ()
 Constructor.
 

Detailed Description

A filter to remove samples that go back in time or are too futuristic.

Since the archived data has to go "forward" in time, going back is no option, and samples that are too far ahead of the host clock indicate a problem with either the IOC or host clock. If we stored such a sample, e.g. "1/1/2050", we could not add another sample to the archive until that date...

Constructor & Destructor Documentation

TimeFilter::TimeFilter ( const EngineConfig config,
ProcessVariableListener listener 
)

Construct filter, using config to determine what's too futuristic.

Member Function Documentation

void TimeFilter::pvValue ( ProcessVariable pv,
const RawValue::Data data 
)
virtual

React to new value and filter it.

Might invoke listener with the value, another value, or not at all.

See Also
ProcessVariableListener

Reimplemented from ProcessVariableFilter.


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