#include <FeatureFileReaderRaw.h>


Public Member Functions | |
| FeatureFileReaderRaw (const FileName &f, const Config &c, LabelServer *ls=NULL, BigEndian be=BIGENDIAN_AUTO, BufferUsage b=BUFFER_AUTO, unsigned long bufferSize=0, HistoricUsage=ALL_FEATURES, unsigned long historicSize=0) | |
| virtual | ~FeatureFileReaderRaw () |
| 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 FeatureFileReaderRaw & | create (const FileName &, const Config &, LabelServer *=NULL, BigEndian=BIGENDIAN_AUTO, BufferUsage=BUFFER_AUTO, unsigned long bufferSize=0, HistoricUsage=ALL_FEATURES, unsigned long historicSize=0) |
Private Member Functions | |
| bool | operator== (const FeatureFileReaderRaw &) const |
| bool | operator!= (const FeatureFileReaderRaw &) const |
| const FeatureFileReaderRaw & | operator= (const FeatureFileReaderRaw &) |
| FeatureFileReaderRaw (const FeatureFileReaderRaw &) | |
Private Attributes | |
| bool | _featureCountDefined |
Friends | |
| class | TestFeatureFileReaderRaw |
Convenient class for reading features from a raw file The file is opened only after calling one of the methods readFeature, get FeatureCount, getVectSize, getFeatureFlags
Definition at line 86 of file FeatureFileReaderRaw.h.
| alize::FeatureFileReaderRaw::FeatureFileReaderRaw | ( | const FileName & | f, |
| const Config & | c, | ||
| LabelServer * | ls = NULL, |
||
| BigEndian | be = BIGENDIAN_AUTO, |
||
| BufferUsage | b = BUFFER_AUTO, |
||
| unsigned long | bufferSize = 0, |
||
| HistoricUsage | = ALL_FEATURES, |
||
| unsigned long | historicSize = 0 |
||
| ) |
Creates a reader for a 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. |
| be | big endian ? Can be BIGENDIAN_AUTO, BIGENDIAN_TRUE or BIGENDIAN_FALSE |
| virtual alize::FeatureFileReaderRaw::~FeatureFileReaderRaw | ( | ) | [virtual] |
| alize::FeatureFileReaderRaw::FeatureFileReaderRaw | ( | const FeatureFileReaderRaw & | ) | [private] |
Not implemented
| static FeatureFileReaderRaw& alize::FeatureFileReaderRaw::create | ( | const FileName & | , |
| const Config & | , | ||
| LabelServer * | = NULL, |
||
| BigEndian | = BIGENDIAN_AUTO, |
||
| BufferUsage | = BUFFER_AUTO, |
||
| unsigned long | bufferSize = 0, |
||
| HistoricUsage | = ALL_FEATURES, |
||
| unsigned long | historicSize = 0 |
||
| ) | [static] |
See constructor with same parameters
| virtual String alize::FeatureFileReaderRaw::getClassName | ( | ) | const [virtual] |
Returns the name of the class
Implements alize::FeatureInputStream.
| virtual unsigned long alize::FeatureFileReaderRaw::getFeatureCount | ( | ) | [virtual] |
Returns the number of features in the file.
Slow : requires to open and close all files !
| Exception | if vectSize is 0 |
| IOException | if an I/O error occurs |
| InvalidDataException | thrown if file length % vectSize is not equal to 0. |
Implements alize::FeatureInputStream.
| virtual const FeatureFlags& alize::FeatureFileReaderRaw::getFeatureFlags | ( | ) | [virtual] |
Returns the feature flags of this stream.
| IOException | if an I/O error occurs |
| FileNotFoundException |
Implements alize::FeatureInputStream.
| virtual real_t alize::FeatureFileReaderRaw::getSampleRate | ( | ) | [virtual] |
Returns the sample rate of this stream.
| IOException | if an I/O error occurs |
| FileNotFoundException |
Implements alize::FeatureInputStream.
| virtual unsigned long alize::FeatureFileReaderRaw::getVectSize | ( | ) | [virtual] |
Returns the size of the vector inside each feature of the stream.
| IOException | if an I/O error occurs |
| FileNotFoundException |
Implements alize::FeatureInputStream.
| bool alize::FeatureFileReaderRaw::operator!= | ( | const FeatureFileReaderRaw & | ) | const [private] |
Not implemented
| const FeatureFileReaderRaw& alize::FeatureFileReaderRaw::operator= | ( | const FeatureFileReaderRaw & | ) | [private] |
Not implemented
| bool alize::FeatureFileReaderRaw::operator== | ( | const FeatureFileReaderRaw & | ) | const [private] |
friend class TestFeatureFileReaderRaw [friend] |
Definition at line 88 of file FeatureFileReaderRaw.h.
bool alize::FeatureFileReaderRaw::_featureCountDefined [private] |
Definition at line 151 of file FeatureFileReaderRaw.h.
1.7.2