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

alize::FeatureFileReaderHTK Class Reference

#include <FeatureFileReaderHTK.h>

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

List of all members.

Public Member Functions

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

Static Public Member Functions

static FeatureFileReaderHTKcreate (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

void readParams ()
bool readHeader ()
virtual unsigned long getHeaderLength ()
bool operator== (const FeatureFileReaderHTK &) const
bool operator!= (const FeatureFileReaderHTK &) const
const FeatureFileReaderHTKoperator= (const FeatureFileReaderHTK &)
 FeatureFileReaderHTK (const FeatureFileReaderHTK &)

Private Attributes

bool _paramDefined

Friends

class TestFeatureFileReaderHTK

Detailed Description

Convenient class for reading features from a HTK 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 FeatureFileReaderHTK.h.


Constructor & Destructor Documentation

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

Creates a reader for a HTK 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::FeatureFileReaderHTK::~FeatureFileReaderHTK (  ) [virtual]
alize::FeatureFileReaderHTK::FeatureFileReaderHTK ( const FeatureFileReaderHTK  ) [private]

Not implemented


Member Function Documentation

static FeatureFileReaderHTK& alize::FeatureFileReaderHTK::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::FeatureFileReaderHTK::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::FeatureFileReaderHTK::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 HTK file

Implements alize::FeatureInputStream.

virtual const FeatureFlags& alize::FeatureFileReaderHTK::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 HTK file

Implements alize::FeatureInputStream.

virtual unsigned long alize::FeatureFileReaderHTK::getHeaderLength (  ) [private, virtual]

Reimplemented from alize::FeatureFileReaderSingle.

virtual real_t alize::FeatureFileReaderHTK::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 HTK file

Implements alize::FeatureInputStream.

virtual unsigned long alize::FeatureFileReaderHTK::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 HTK file

Implements alize::FeatureInputStream.

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

Not implemented

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

Not implemented

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

Friends And Related Function Documentation

friend class TestFeatureFileReaderHTK [friend]

Definition at line 88 of file FeatureFileReaderHTK.h.


Member Data Documentation

Definition at line 155 of file FeatureFileReaderHTK.h.


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