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

Reads data from storage with linear interpolation. More...

#include <LinearReader.h>

Inheritance diagram for LinearReader:
AverageReader DataReader

Public Member Functions

 LinearReader (Index &index, double delta)
 Create a reader for an index. More...
 
const RawValue::Datafind (const std::string &channel_name, const epicsTime *start)
 Returns a sample of the specified channel.
 
const std::string & getName () const
 Returns a channel name.
 
const RawValue::Datanext ()
 Return the next sample.
 
- Public Member Functions inherited from AverageReader
 AverageReader (Index &index, double delta)
 Create a reader for an index. More...
 
const RawValue::Datafind (const std::string &channel_name, const epicsTime *start)
 Returns sample of the specified channel.
 
const RawValue::Dataget () const
 Returns the present sample.
 
DbrType getType () const
 Return the value type.
 
DbrCount getCount () const
 Returns the count of the sample value.
 
const CtrlInfogetInfo () const
 Returns CtrlInfo.
 
bool changedType ()
 Checks if type changed.
 
bool changedInfo ()
 Checks if CtrlInfo changed.
 
bool isRaw () const
 
double getMinimum () const
 
double getMaximum () const
 
- Public Member Functions inherited from DataReader
virtual const RawValue::Datafind (const stdString &channel_name, const epicsTime *start)=0
 Locate data. More...
 
void toString (stdString &text) const
 Convert current value to string. More...
 

Detailed Description

Reads data from storage with linear interpolation.

The LinearReader is an implementation of a DataReader that aligns data onto multiples of 'delta' seconds on the time axis via linear interpolation.

Constructor & Destructor Documentation

LinearReader::LinearReader ( Index index,
double  delta 
)

Create a reader for an index.

Parameters
indexindex file
deltaThe interpolation time interval in seconds.

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