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

alize::FeatureFileReaderSPro4 Class Reference

#include <FeatureFileReaderSPro4.h>

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

List of all members.

Public Member Functions

 FeatureFileReaderSPro4 (const FileName &f, const Config &c, LabelServer *ls=NULL, BigEndian=BIGENDIAN_AUTO, BufferUsage b=BUFFER_AUTO, unsigned long bufferSize=0, HistoricUsage=ALL_FEATURES, unsigned long historicSize=0)
virtual ~FeatureFileReaderSPro4 ()
virtual unsigned long getFeatureCount ()
virtual unsigned long getVectSize ()
virtual const FeatureFlagsgetFeatureFlags ()
virtual real_t getSampleRate ()
virtual String getClassName () const

Static Public Member Functions

static FeatureFileReaderSPro4create (const FileName &, const Config &c, LabelServer *ls=NULL, BigEndian=BIGENDIAN_AUTO, BufferUsage b=BUFFER_AUTO, unsigned long bufferSize=0, HistoricUsage=ALL_FEATURES, unsigned long historicSize=0)

Private Member Functions

void readParams ()
bool readHeader ()
virtual unsigned long getHeaderLength ()
bool operator== (const FeatureFileReaderSPro4 &) const
bool operator!= (const FeatureFileReaderSPro4 &) const
const FeatureFileReaderSPro4operator= (const FeatureFileReaderSPro4 &)
 FeatureFileReaderSPro4 (const FeatureFileReaderSPro4 &)

Private Attributes

bool _paramDefined

Friends

class TestFeatureFileReaderSPro4

Detailed Description

Convenient class for reading features from a S-PRO 4 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 FeatureFileReaderSPro4.h.


Constructor & Destructor Documentation

alize::FeatureFileReaderSPro4::FeatureFileReaderSPro4 ( const FileName f,
const Config c,
LabelServer ls = NULL,
BigEndian  = BIGENDIAN_AUTO,
BufferUsage  b = BUFFER_AUTO,
unsigned long  bufferSize = 0,
HistoricUsage  = ALL_FEATURES,
unsigned long  historicSize = 0 
)

Creates a reader for a SPro 4.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.
bebig endian ? Can be BIGENDIAN_AUTO, BIGENDIAN_TRUE or BIGENDIAN_FALSE
virtual alize::FeatureFileReaderSPro4::~FeatureFileReaderSPro4 (  ) [virtual]
alize::FeatureFileReaderSPro4::FeatureFileReaderSPro4 ( const FeatureFileReaderSPro4  ) [private]

Not implemented


Member Function Documentation

static FeatureFileReaderSPro4& alize::FeatureFileReaderSPro4::create ( const FileName ,
const Config c,
LabelServer ls = NULL,
BigEndian  = BIGENDIAN_AUTO,
BufferUsage  b = BUFFER_AUTO,
unsigned long  bufferSize = 0,
HistoricUsage  = ALL_FEATURES,
unsigned long  historicSize = 0 
) [static]

See constructor with same parameters

virtual String alize::FeatureFileReaderSPro4::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::FeatureFileReaderSPro4::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
FileNotFoundException
InvalidDataExceptionthrown if the file is not a valid SPro file

Implements alize::FeatureInputStream.

virtual const FeatureFlags& alize::FeatureFileReaderSPro4::getFeatureFlags (  ) [virtual]

Returns the feature flags of this file

Returns:
the feature flags 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::FeatureFileReaderSPro4::getHeaderLength (  ) [private, virtual]

Reimplemented from alize::FeatureFileReaderSingle.

virtual real_t alize::FeatureFileReaderSPro4::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::FeatureFileReaderSPro4::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
FileNotFoundException
InvalidDataExceptionthrown if the file is not a valid SPro file

Implements alize::FeatureInputStream.

bool alize::FeatureFileReaderSPro4::operator!= ( const FeatureFileReaderSPro4  ) const [private]

Not implemented

const FeatureFileReaderSPro4& alize::FeatureFileReaderSPro4::operator= ( const FeatureFileReaderSPro4  ) [private]

Not implemented

bool alize::FeatureFileReaderSPro4::operator== ( const FeatureFileReaderSPro4  ) const [private]
bool alize::FeatureFileReaderSPro4::readHeader (  ) [private]
void alize::FeatureFileReaderSPro4::readParams (  ) [private]

Friends And Related Function Documentation

friend class TestFeatureFileReaderSPro4 [friend]

Definition at line 88 of file FeatureFileReaderSPro4.h.


Member Data Documentation

Definition at line 155 of file FeatureFileReaderSPro4.h.


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