nidas
v1.2-1520
|
Interface for a resampler, simply a SampleClient and a SampleSource. More...
#include <Resampler.h>
Public Member Functions | |
virtual | ~Resampler () |
virtual void | flush ()=0 throw () |
Both SampleClient and SampleSource have a flush() method. More... | |
virtual void | connect (SampleSource *source)=0 throw (nidas::util::InvalidParameterException) |
Connect the resampler to a source. More... | |
virtual void | disconnect (SampleSource *source)=0 throw () |
virtual bool | receive (const Sample *s)=0 throw () |
Method called to pass a sample to this client. More... | |
virtual SampleSource * | getRawSampleSource ()=0 |
Several objects in NIDAS can be both a SampleSource of raw Samples and processed Samples. More... | |
virtual SampleSource * | getProcessedSampleSource ()=0 |
Several objects in NIDAS can be both a SampleSource of raw Samples and processed Samples. More... | |
virtual void | addSampleTag (const SampleTag *)=0 throw (nidas::util::InvalidParameterException) |
Add a SampleTag to this SampleSource. More... | |
virtual void | removeSampleTag (const SampleTag *)=0 throw () |
virtual std::list< const SampleTag * > | getSampleTags () const =0 |
What SampleTags am I a SampleSource for? More... | |
virtual SampleTagIterator | getSampleTagIterator () const =0 |
virtual void | addSampleClient (SampleClient *c)=0 throw () |
Add a SampleClient of all Samples to this SampleSource. More... | |
virtual void | removeSampleClient (SampleClient *c)=0 throw () |
Remove a SampleClient from this SampleSource. More... | |
virtual void | addSampleClientForTag (SampleClient *c, const SampleTag *)=0 throw () |
Add a SampleClient to this SampleSource. More... | |
virtual void | removeSampleClientForTag (SampleClient *c, const SampleTag *)=0 throw () |
Remove a SampleClient for a given SampleTag from this SampleSource. More... | |
virtual int | getClientCount () const =0 throw () |
How many SampleClients are currently in my list. More... | |
virtual const SampleStats & | getSampleStats () const =0 |
Interface for a resampler, simply a SampleClient and a SampleSource.
|
inlinevirtual |
|
pure virtualinherited |
Add a SampleClient of all Samples to this SampleSource.
The pointer to the SampleClient must remain valid, until after it is removed.
Implemented in nidas::core::DSMSensor, nidas::dynld::SampleInputStream, nidas::dynld::raf::SyncRecordSource, nidas::core::SampleIOProcessor, nidas::core::NearestResamplerAtRate, nidas::core::SamplePipeline, nidas::core::SampleSorter, nidas::core::SampleBuffer, nidas::dynld::StatisticsCruncher, nidas::dynld::raf::SyncRecordGenerator, nidas::core::SampleAverager, nidas::core::NearestResampler, and nidas::core::SampleSourceSupport.
Referenced by nidas::dynld::SampleProcessor::connect(), nidas::core::SampleArchiver::connect(), nidas::core::SamplePipeline::connect(), nidas::dynld::SampleProcessor::connectSource(), nidas::core::SampleArchiver::connectSource(), DataDump::run(), and DataStats::run().
|
pure virtualinherited |
Add a SampleClient to this SampleSource.
The pointer to the SampleClient must remain valid, until after it is removed.
Implemented in nidas::core::DSMSensor, nidas::dynld::SampleInputStream, nidas::dynld::raf::SyncRecordSource, nidas::core::SampleIOProcessor, nidas::core::NearestResamplerAtRate, nidas::core::SamplePipeline, nidas::core::SampleSorter, nidas::core::SampleBuffer, nidas::dynld::StatisticsCruncher, nidas::core::SampleAverager, nidas::core::NearestResampler, nidas::dynld::raf::SyncRecordGenerator, and nidas::core::SampleSourceSupport.
|
pure virtualinherited |
Add a SampleTag to this SampleSource.
This SampleSource does not own the SampleTag.
Implemented in nidas::core::DSMSensor, nidas::dynld::raf::SyncRecordSource, nidas::dynld::SampleInputStream, nidas::dynld::StatisticsCruncher, nidas::core::NearestResamplerAtRate, nidas::core::NearestResampler, nidas::core::SampleAverager, nidas::core::SampleIOProcessor, nidas::core::SamplePipeline, nidas::core::SampleSorter, nidas::core::SampleBuffer, and nidas::core::SampleSourceSupport.
Referenced by nidas::core::SamplePipeline::addSampleTag(), nidas::dynld::RawSampleService::fromDOMElement(), StatsProcess::run(), and DataPrep::run().
|
pure virtual |
Connect the resampler to a source.
Implemented in nidas::dynld::raf::SyncRecordSource, nidas::core::NearestResamplerAtRate, nidas::dynld::StatisticsCruncher, nidas::core::SampleAverager, and nidas::core::NearestResampler.
|
pure virtual |
|
pure virtual |
Both SampleClient and SampleSource have a flush() method.
Redeclaring it here as pure virtual removes the ambiguity.
Implements nidas::core::SampleClient.
Implemented in nidas::dynld::raf::SyncRecordSource, nidas::core::NearestResamplerAtRate, nidas::core::NearestResampler, nidas::dynld::StatisticsCruncher, and nidas::core::SampleAverager.
|
pure virtualinherited |
How many SampleClients are currently in my list.
Implemented in nidas::core::DSMSensor, nidas::dynld::SampleInputStream, nidas::dynld::raf::SyncRecordSource, nidas::core::SampleIOProcessor, nidas::core::NearestResamplerAtRate, nidas::core::SamplePipeline, nidas::core::SampleSorter, nidas::core::SampleBuffer, nidas::dynld::StatisticsCruncher, nidas::core::SampleAverager, nidas::core::NearestResampler, nidas::dynld::raf::SyncRecordGenerator, and nidas::core::SampleSourceSupport.
Referenced by nidas::core::SamplePipeline::getClientCount().
|
pure virtualinherited |
Several objects in NIDAS can be both a SampleSource of raw Samples and processed Samples.
SampleClients use this method to get a pointer to whatever sample source they are interested in. Derived classes can return NULL if they are not a SampleSource of processed samples.
Implemented in nidas::core::DSMSensor, nidas::dynld::SampleInputStream, nidas::dynld::raf::SyncRecordSource, nidas::core::NearestResamplerAtRate, nidas::core::SampleIOProcessor, nidas::core::SamplePipeline, nidas::core::SampleSorter, nidas::dynld::StatisticsCruncher, nidas::core::SampleAverager, nidas::core::SampleBuffer, nidas::core::NearestResampler, and nidas::core::SampleSourceSupport.
Referenced by nidas::dynld::SampleProcessor::connectSource(), nidas::dynld::raf::CVIProcessor::connectSource(), nidas::dynld::StatisticsProcessor::connectSource(), nidas::core::SampleArchiver::connectSource(), and nidas::core::SampleArchiver::disconnectSource().
|
pure virtualinherited |
Several objects in NIDAS can be both a SampleSource of raw Samples and processed Samples.
SampleClients use this method to get a pointer to whatever sample source they are interested in. Derived classes can return NULL if they are not a SampleSource of raw samples.
Implemented in nidas::core::DSMSensor, nidas::dynld::SampleInputStream, nidas::dynld::raf::SyncRecordSource, nidas::core::NearestResamplerAtRate, nidas::core::SampleIOProcessor, nidas::core::SamplePipeline, nidas::core::SampleSorter, nidas::dynld::StatisticsCruncher, nidas::core::SampleAverager, nidas::core::NearestResampler, nidas::core::SampleBuffer, and nidas::core::SampleSourceSupport.
Referenced by nidas::core::SamplePipeline::connect(), nidas::core::SampleArchiver::connectSource(), nidas::core::SamplePipeline::disconnect(), and nidas::core::SampleArchiver::disconnectSource().
|
pure virtualinherited |
Implemented in nidas::core::DSMSensor, nidas::dynld::SampleInputStream, nidas::dynld::raf::SyncRecordSource, nidas::core::NearestResamplerAtRate, nidas::core::SampleIOProcessor, nidas::core::SamplePipeline, nidas::core::SampleSourceSupport, nidas::core::SampleSorter, nidas::core::SampleBuffer, nidas::dynld::StatisticsCruncher, nidas::dynld::raf::SyncRecordGenerator, nidas::core::SampleAverager, and nidas::core::NearestResampler.
Referenced by nidas::core::SamplePipeline::getSampleStats(), nidas::dynld::RawSampleService::printClock(), nidas::dynld::RawSampleService::printStatus(), nidas::core::SampleArchiver::printStatus(), and nidas::dynld::raf::SyncRecordGenerator::printStatus().
|
pure virtualinherited |
Implemented in nidas::core::DSMSensor, nidas::dynld::SampleInputStream, nidas::dynld::raf::SyncRecordSource, nidas::core::SampleIOProcessor, nidas::core::NearestResamplerAtRate, nidas::core::SamplePipeline, nidas::core::SampleSorter, nidas::core::SampleBuffer, nidas::dynld::StatisticsCruncher, nidas::dynld::raf::SyncRecordGenerator, nidas::core::SampleAverager, nidas::core::NearestResampler, and nidas::core::SampleSourceSupport.
Referenced by nidas::core::SamplePipeline::connect(), nidas::dynld::raf::CVIProcessor::connectSource(), nidas::core::SamplePipeline::disconnect(), and nidas::core::SamplePipeline::getSampleTagIterator().
|
pure virtualinherited |
What SampleTags am I a SampleSource for?
Implemented in nidas::core::DSMSensor, nidas::dynld::SampleInputStream, nidas::dynld::raf::SyncRecordSource, nidas::core::SampleIOProcessor, nidas::core::NearestResamplerAtRate, nidas::core::SamplePipeline, nidas::core::SampleSorter, nidas::core::SampleBuffer, nidas::dynld::StatisticsCruncher, nidas::core::SampleSourceSupport, nidas::dynld::isff::PacketInputStream, nidas::dynld::psql::PSQLProcessor, nidas::dynld::raf::SyncRecordGenerator, nidas::core::SampleAverager, and nidas::core::NearestResampler.
Referenced by nidas::core::DSMEngine::connectOutputs(), nidas::dynld::SampleProcessor::connectSource(), nidas::dynld::StatisticsProcessor::connectSource(), nidas::core::SampleArchiver::connectSource(), nidas::core::SamplePipeline::getSampleTags(), DataPrep::run(), and nidas::dynld::RawSampleService::schedule().
|
pure virtualinherited |
Method called to pass a sample to this client.
This method is typically called by a SampleSource for each of its SampleClients when it has a sample ready. Returns true: success false: sample rejected. This is meant to signal a warning-type situation - like a socket not being available temporarily. True errors will be thrown as an IOException.
Implemented in SampleDispatcher, DataStats, nidas::core::DSMSensor, nidas::dynld::raf::SyncRecordSource, nidas::core::NearestResamplerAtRate, nidas::core::SampleSorter, nidas::core::SampleBuffer, nidas::dynld::raf::SyncRecordReader, TestClient, nidas::core::SampleAverager, nidas::core::NearestResampler, nidas::dynld::StatisticsCruncher, nidas::dynld::isff::GOESOutput, nidas::dynld::raf::CVIProcessor, DumpClient, DumpClient, nidas::dynld::psql::PSQLSampleOutput, nidas::core::RemoteSerialConnection, nidas::dynld::AsciiOutput, nidas::dynld::SampleOutputStream, nidas::dynld::UDPSampleOutput, and nidas::dynld::raf::CVIOutput.
|
pure virtualinherited |
Remove a SampleClient from this SampleSource.
Implemented in nidas::core::DSMSensor, nidas::dynld::SampleInputStream, nidas::dynld::raf::SyncRecordSource, nidas::core::SampleIOProcessor, nidas::core::NearestResamplerAtRate, nidas::core::SamplePipeline, nidas::core::SampleSorter, nidas::core::SampleBuffer, nidas::dynld::StatisticsCruncher, nidas::core::SampleAverager, nidas::core::NearestResampler, nidas::dynld::raf::SyncRecordGenerator, and nidas::core::SampleSourceSupport.
Referenced by nidas::core::RemoteSerialConnection::close(), nidas::core::DSMEngine::closeOutputs(), nidas::dynld::SampleProcessor::disconnect(), nidas::core::SampleArchiver::disconnect(), nidas::core::SamplePipeline::disconnect(), DataDump::run(), DataStats::run(), nidas::core::SampleArchiver::~SampleArchiver(), and nidas::dynld::SampleProcessor::~SampleProcessor().
|
pure virtualinherited |
Remove a SampleClient for a given SampleTag from this SampleSource.
The pointer to the SampleClient must remain valid, until after it is removed.
Implemented in nidas::core::DSMSensor, nidas::dynld::SampleInputStream, nidas::dynld::raf::SyncRecordSource, nidas::core::SampleIOProcessor, nidas::core::NearestResamplerAtRate, nidas::core::SamplePipeline, nidas::core::SampleSorter, nidas::core::SampleBuffer, nidas::dynld::StatisticsCruncher, nidas::core::SampleAverager, nidas::core::NearestResampler, nidas::dynld::raf::SyncRecordGenerator, and nidas::core::SampleSourceSupport.
|
pure virtualinherited |
Implemented in nidas::core::DSMSensor, nidas::dynld::raf::SyncRecordSource, nidas::dynld::SampleInputStream, nidas::dynld::StatisticsCruncher, nidas::core::NearestResamplerAtRate, nidas::core::NearestResampler, nidas::core::SampleAverager, nidas::core::SampleIOProcessor, nidas::core::SamplePipeline, nidas::core::SampleSorter, nidas::core::SampleBuffer, and nidas::core::SampleSourceSupport.
Referenced by nidas::core::SamplePipeline::removeSampleTag().