#include <SDIFOut.hxx>
Public Member Functions | |
SDIFOut (const SDIFOutConfig &c) | |
SDIFOut () | |
virtual | ~SDIFOut () |
const char * | GetClassName () const |
Override it in every subclass and retur the name of that class. | |
bool | GetEnableResidual () |
bool | GetEnablePeakArray () |
bool | GetEnableFundFreq () |
bool | Do (void) |
Supervised mode execution method (using ports). | |
bool | Do (const Frame &frame) |
const ProcessingConfig & | GetConfig () const |
Configuration getter. | |
Public Attributes | |
SDIF::File * | mpFile |
Protected Member Functions | |
bool | ConcreteStart () |
Processing objects have to redefine this method when starting them implies some internal changes. | |
bool | ConcreteStop () |
Processing objects have to redefine this method when stoping them implies some internal changes. | |
Protected Attributes | |
InPort< Fundamental > | mInputFundamental |
InPort< SpectralPeakArray > | mInputSinSpectralPeaks |
InPort< Spectrum > | mInputResSpectrum |
Definition at line 58 of file SDIFOut.hxx.
SDIFOut::SDIFOut | ( | const SDIFOutConfig & | c | ) |
Definition at line 65 of file SDIFOut.cxx.
References CLAM::Processing::Configure(), mpFile, and NULL.
SDIFOut::SDIFOut | ( | ) |
Definition at line 54 of file SDIFOut.cxx.
References CLAM::Processing::Configure(), mpFile, and NULL.
SDIFOut::~SDIFOut | ( | ) | [virtual] |
Definition at line 77 of file SDIFOut.cxx.
References SDIF::File::Close(), and mpFile.
bool SDIFOut::ConcreteStart | ( | void | ) | [protected, virtual] |
Processing objects have to redefine this method when starting them implies some internal changes.
ie: adquiring resources.
Reimplemented from CLAM::Processing.
Definition at line 89 of file SDIFOut.cxx.
References CLAM::Processing::AddConfigErrorMessage(), SDIF::File::eOutput, mpFile, SDIF::File::Open(), and CLAM::Err::what().
bool SDIFOut::ConcreteStop | ( | ) | [protected, virtual] |
Processing objects have to redefine this method when stoping them implies some internal changes.
ie: releasing resources.
Reimplemented from CLAM::Processing.
Definition at line 111 of file SDIFOut.cxx.
References SDIF::File::Close(), and mpFile.
bool SDIFOut::Do | ( | const Frame & | frame | ) |
Definition at line 140 of file SDIFOut.cxx.
References CLAM::SpecTypeFlags::bComplex, CLAM::SpectralPeakArray::GetnPeaks(), mpFile, SDIF::ConcreteMatrix< T >::SetValue(), and CLAM::SpectralPeakArray::ToLinear().
bool SDIFOut::Do | ( | void | ) | [virtual] |
Supervised mode execution method (using ports).
Implements CLAM::Processing.
Definition at line 131 of file SDIFOut.cxx.
References CLAM::InPort< Token >::GetData(), mInputResSpectrum, and mInputSinSpectralPeaks.
const char* CLAM::SDIFOut::GetClassName | ( | ) | const [inline, virtual] |
Override it in every subclass and retur the name of that class.
Implements CLAM::Processing.
Definition at line 66 of file SDIFOut.hxx.
const ProcessingConfig & SDIFOut::GetConfig | ( | ) | const [virtual] |
Configuration getter.
Gets the configuration parameters used to create the object.
Reimplemented from CLAM::Processing.
Definition at line 126 of file SDIFOut.cxx.
bool CLAM::SDIFOut::GetEnableFundFreq | ( | ) | [inline] |
Definition at line 70 of file SDIFOut.hxx.
bool CLAM::SDIFOut::GetEnablePeakArray | ( | ) | [inline] |
Definition at line 69 of file SDIFOut.hxx.
bool CLAM::SDIFOut::GetEnableResidual | ( | ) | [inline] |
Definition at line 68 of file SDIFOut.hxx.
InPort<Fundamental> CLAM::SDIFOut::mInputFundamental [protected] |
Definition at line 86 of file SDIFOut.hxx.
InPort<Spectrum> CLAM::SDIFOut::mInputResSpectrum [protected] |
Definition at line 88 of file SDIFOut.hxx.
Referenced by Do().
InPort<SpectralPeakArray> CLAM::SDIFOut::mInputSinSpectralPeaks [protected] |
Definition at line 87 of file SDIFOut.hxx.
Referenced by Do().
Definition at line 78 of file SDIFOut.hxx.
Referenced by ConcreteStart(), ConcreteStop(), Do(), SDIFOut(), and ~SDIFOut().