#include <FeatureFileReaderSPro3.h>


Public Types | |
| typedef SPRO3DataKind | datakind_t |
Public Member Functions | |
| FeatureFileReaderSPro3 (const FileName &f, const Config &c, LabelServer *ls=NULL, BufferUsage b=BUFFER_AUTO, unsigned long bufferSize=0, HistoricUsage=ALL_FEATURES, unsigned long historicSize=0) | |
| virtual | ~FeatureFileReaderSPro3 () |
| virtual unsigned long | getFeatureCount () |
| virtual unsigned long | getVectSize () |
| virtual const FeatureFlags & | getFeatureFlags () |
| virtual real_t | getSampleRate () |
| virtual String | getClassName () const |
Static Public Member Functions | |
| static FeatureFileReaderSPro3 & | create (const FileName &, const Config &, LabelServer *=NULL, BufferUsage=BUFFER_AUTO, unsigned long bufferSize=0, HistoricUsage=ALL_FEATURES, unsigned long historicSize=0) |
Private Types | |
| typedef float | param_t |
Private Member Functions | |
| void | readParams () |
| bool | readHeader () |
| virtual unsigned long | getHeaderLength () |
| bool | operator== (const FeatureFileReaderSPro3 &) const |
| bool | operator!= (const FeatureFileReaderSPro3 &) const |
| const FeatureFileReaderSPro3 & | operator= (const FeatureFileReaderSPro3 &) |
| FeatureFileReaderSPro3 (const FeatureFileReaderSPro3 &) | |
Private Attributes | |
| SPRO3DataKind | _kind |
| bool | _paramDefined |
Friends | |
| class | TestFeatureFileReaderSPro3 |
Convenient class for reading features from a S-PRO 3.x file The file is opened only after calling one of the methods readFeature, get FeatureCount, getVectSize, getFeatureFlags
Definition at line 86 of file FeatureFileReaderSPro3.h.
Definition at line 148 of file FeatureFileReaderSPro3.h.
typedef float alize::FeatureFileReaderSPro3::param_t [private] |
Definition at line 152 of file FeatureFileReaderSPro3.h.
| alize::FeatureFileReaderSPro3::FeatureFileReaderSPro3 | ( | const FileName & | f, |
| const Config & | c, | ||
| LabelServer * | ls = NULL, |
||
| BufferUsage | b = BUFFER_AUTO, |
||
| unsigned long | bufferSize = 0, |
||
| HistoricUsage | = ALL_FEATURES, |
||
| unsigned long | historicSize = 0 |
||
| ) |
Creates a reader for a SPro 3.x feature file.
| f | a file to read. No path is required. It uses the parameter "featureFilesPath" of the configuration. |
| c | the configuration to use |
| ls | address of a label server. can be NULL. |
Referenced by create().
| virtual alize::FeatureFileReaderSPro3::~FeatureFileReaderSPro3 | ( | ) | [virtual] |
| alize::FeatureFileReaderSPro3::FeatureFileReaderSPro3 | ( | const FeatureFileReaderSPro3 & | ) | [private] |
Not implemented
| R & FeatureFileReaderSPro3::create | ( | const FileName & | f, |
| const Config & | c, | ||
| LabelServer * | l = NULL, |
||
| BufferUsage | b = BUFFER_AUTO, |
||
| unsigned long | bufferSize = 0, |
||
| HistoricUsage | h = ALL_FEATURES, |
||
| unsigned long | historicSize = 0 |
||
| ) | [static] |
See constructor with same parameters
Definition at line 86 of file FeatureFileReaderSPro3.cpp.
References alize::Object::assertMemoryIsAllocated(), and FeatureFileReaderSPro3().
| virtual String alize::FeatureFileReaderSPro3::getClassName | ( | ) | const [virtual] |
Returns the name of the class
Implements alize::FeatureInputStream.
| virtual unsigned long alize::FeatureFileReaderSPro3::getFeatureCount | ( | ) | [virtual] |
Returns the number of features in the file
| IOException | if an I/O error occurs |
| InvalidDataException | thrown if the file is not a valid SPro file |
Implements alize::FeatureInputStream.
| virtual const FeatureFlags& alize::FeatureFileReaderSPro3::getFeatureFlags | ( | ) | [virtual] |
Returns the feature flags of this file
| IOException | if an I/O error occurs |
| InvalidDataException | thrown if the file is not a valid SPro file |
Implements alize::FeatureInputStream.
| virtual unsigned long alize::FeatureFileReaderSPro3::getHeaderLength | ( | ) | [private, virtual] |
Reimplemented from alize::FeatureFileReaderSingle.
| virtual real_t alize::FeatureFileReaderSPro3::getSampleRate | ( | ) | [virtual] |
Returns the sample rate of this file.
| IOException | if an I/O error occurs |
| FileNotFoundException | |
| InvalidDataException | thrown if the file is not a valid SPro file |
Implements alize::FeatureInputStream.
| virtual unsigned long alize::FeatureFileReaderSPro3::getVectSize | ( | ) | [virtual] |
Returns the size of the vector inside the features of this file
| IOException | if an I/O error occurs |
| InvalidDataException | thrown if the file is not a valid SPro file |
Implements alize::FeatureInputStream.
| bool alize::FeatureFileReaderSPro3::operator!= | ( | const FeatureFileReaderSPro3 & | ) | const [private] |
Not implemented
| const FeatureFileReaderSPro3& alize::FeatureFileReaderSPro3::operator= | ( | const FeatureFileReaderSPro3 & | ) | [private] |
Not implemented
| bool alize::FeatureFileReaderSPro3::operator== | ( | const FeatureFileReaderSPro3 & | ) | const [private] |
| bool alize::FeatureFileReaderSPro3::readHeader | ( | ) | [private] |
| void alize::FeatureFileReaderSPro3::readParams | ( | ) | [private] |
friend class TestFeatureFileReaderSPro3 [friend] |
Definition at line 88 of file FeatureFileReaderSPro3.h.
Definition at line 154 of file FeatureFileReaderSPro3.h.
bool alize::FeatureFileReaderSPro3::_paramDefined [private] |
Definition at line 155 of file FeatureFileReaderSPro3.h.
1.7.2