Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends

alize::FeatureFileReaderSPro3 Class Reference

#include <FeatureFileReaderSPro3.h>

Inheritance diagram for alize::FeatureFileReaderSPro3:
Inheritance graph
[legend]
Collaboration diagram for alize::FeatureFileReaderSPro3:
Collaboration graph
[legend]

List of all members.

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 FeatureFlagsgetFeatureFlags ()
virtual real_t getSampleRate ()
virtual String getClassName () const

Static Public Member Functions

static FeatureFileReaderSPro3create (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 FeatureFileReaderSPro3operator= (const FeatureFileReaderSPro3 &)
 FeatureFileReaderSPro3 (const FeatureFileReaderSPro3 &)

Private Attributes

SPRO3DataKind _kind
bool _paramDefined

Friends

class TestFeatureFileReaderSPro3

Detailed Description

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

Author:
Frederic Wils frederic.wils@lia.univ-avignon.fr
Version:
1.0
Date:
2003

Definition at line 86 of file FeatureFileReaderSPro3.h.


Member Typedef Documentation

Definition at line 148 of file FeatureFileReaderSPro3.h.

typedef float alize::FeatureFileReaderSPro3::param_t [private]

Definition at line 152 of file FeatureFileReaderSPro3.h.


Constructor & Destructor Documentation

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.

Parameters:
fa file to read. No path is required. It uses the parameter "featureFilesPath" of the configuration.
cthe configuration to use
lsaddress of a label server. can be NULL.

Referenced by create().

virtual alize::FeatureFileReaderSPro3::~FeatureFileReaderSPro3 (  ) [virtual]
alize::FeatureFileReaderSPro3::FeatureFileReaderSPro3 ( const FeatureFileReaderSPro3  ) [private]

Not implemented


Member Function Documentation

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

Returns:
the name of the class of the object as a String

Implements alize::FeatureInputStream.

virtual unsigned long alize::FeatureFileReaderSPro3::getFeatureCount (  ) [virtual]

Returns the number of features in the file

Returns:
the number of features in the file
Exceptions:
IOExceptionif an I/O error occurs
InvalidDataExceptionthrown 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

Returns:
the feature flags of this file
Exceptions:
IOExceptionif an I/O error occurs
InvalidDataExceptionthrown 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.

Returns:
the sample rate of this file
Exceptions:
IOExceptionif an I/O error occurs
FileNotFoundException
InvalidDataExceptionthrown 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

Returns:
the size of the vector inside the features of this file
Exceptions:
IOExceptionif an I/O error occurs
InvalidDataExceptionthrown 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]

Friends And Related Function Documentation

friend class TestFeatureFileReaderSPro3 [friend]

Definition at line 88 of file FeatureFileReaderSPro3.h.


Member Data Documentation

Definition at line 154 of file FeatureFileReaderSPro3.h.

Definition at line 155 of file FeatureFileReaderSPro3.h.


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