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

alize::Config Class Reference

#include <Config.h>

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

List of all members.

Public Member Functions

 Config ()
 Config (const FileName &f)
 Config (const Config &)
const Configoperator= (const Config &c)
bool operator== (const Config &c) const
bool operator!= (const Config &c) const
virtual ~Config ()
void save (const FileName &f) const
void load (const FileName &f)
void reset ()
unsigned long getParamCount () const
const StringgetParamName (unsigned long) const
const StringgetParamContent (unsigned long) const
void setParam (const String &name, const String &content)
void setParam (const Config &c)
const StringgetParam (const String &name) const
long getIntegerParam (const String &name) const
double getFloatParam (const String &name) const
bool getBooleanParam (const String &name) const
bool existsParam (const String &name) const
real_t getParam_minCov () const
unsigned long getParam_vectSize () const
bool getParam_computeLLKWithTopDistribs () const
bool getParam_debug () const
unsigned long getParam_topDistribsCount () const
unsigned long getParam_mixtureDistribCount () const
lk_t getParam_minLLK () const
lk_t getParam_maxLLK () const
DistribType getParam_distribType () const
MixtureFileWriterFormat getParam_saveMixtureFileFormat () const
MixtureServerFileWriterFormat getParam_saveMixtureServerFileFormat () const
SegServerFileWriterFormat getParam_saveSegServerFileFormat () const
const FeatureFlagsgetParam_featureFlags () const
const StringgetParam_featureServerBufferSize () const
const StringgetParam_featureServerMask () const
const StringgetParam_featureFilesPath () const
const StringgetParam_audioFilesPath () const
unsigned long getParam_loadFeatureFileMemAlloc () const
unsigned long getParam_featureServerMemAlloc () const
FeatureFileReaderFormat getParam_loadFeatureFileFormat () const
unsigned long getParam_loadFeatureFileVectSize () const
unsigned long getParam_loadAudioFileChannel () const
const StringgetParam_loadFeatureFileExtension () const
const StringgetParam_loadAudioFileExtension () const
bool getParam_loadFeatureFileBigEndian () const
bool getParam_loadAudioFileBigEndian () const
const StringgetParam_featureServerMode () const
bool getParam_loadMixtureFileBigEndian () const
FeatureFileWriterFormat getParam_saveFeatureFileFormat () const
const StringgetParam_saveFeatureFileExtension () const
SPRO3DataKind getParam_saveFeatureFileSPro3DataKind () const
MixtureFileReaderFormat getParam_loadMixtureFileFormat () const
SegServerFileReaderFormat getParam_loadSegServerFileFormat () const
const StringgetParam_loadMixtureFileExtension () const
const StringgetParam_loadSegServerFileExtension () const
const StringgetParam_saveMixtureFileExtension () const
const StringgetParam_saveMixtureServerFileExtension () const
const StringgetParam_saveSegServerFileExtension () const
const StringgetParam_mixtureFilesPath () const
const StringgetParam_segServerFilesPath () const
bool getParam_bigEndian () const
real_t getParam_sampleRate () const
virtual String getClassName () const
virtual String toString () const

Public Attributes

bool existsParam_minCov
bool existsParam_vectSize
bool existsParam_loadFeatureFileMemAlloc
bool existsParam_featureServerMemAlloc
bool existsParam_computeLLKWithTopDistribs
bool existsParam_debug
bool existsParam_topDistribsCount
bool existsParam_featureServerBufferSize
bool existsParam_featureServerMask
bool existsParam_featureFlags
bool existsParam_mixtureDistribCount
bool existsParam_minLLK
bool existsParam_maxLLK
bool existsParam_distribType
bool existsParam_saveMixtureFileFormat
bool existsParam_saveMixtureServerFileFormat
bool existsParam_saveSegServerFileFormat
bool existsParam_saveFeatureFileFormat
bool existsParam_saveFeatureFileSPro3DataKind
bool existsParam_loadFeatureFileFormat
bool existsParam_loadFeatureFileVectSize
bool existsParam_loadAudioFileChannel
bool existsParam_loadMixtureFileFormat
bool existsParam_loadSegServerFileFormat
bool existsParam_saveMixtureFileExtension
bool existsParam_saveMixtureServerFileExtension
bool existsParam_saveSegServerFileExtension
bool existsParam_saveFeatureFileExtension
bool existsParam_loadFeatureFileExtension
bool existsParam_loadAudioFileExtension
bool existsParam_loadFeatureFileBigEndian
bool existsParam_loadAudioFileBigEndian
bool existsParam_featureServerMode
bool existsParam_loadMixtureFileBigEndian
bool existsParam_loadMixtureFileExtension
bool existsParam_loadSegServerFileExtension
bool existsParam_bigEndian
bool existsParam_sampleRate
bool existsParam_featureFilesPath
bool existsParam_audioFilesPath
bool existsParam_segServerFilesPath
bool existsParam_mixtureFilesPath

Private Member Functions

void assign (const Config &)
void err (const String &) const

Private Attributes

real_t _param_minCov
unsigned long _param_vectSize
unsigned long _param_loadFeatureFileMemAlloc
unsigned long _param_featureServerMemAlloc
bool _param_computeLLKWithTopDistribs
bool _param_debug
unsigned long _param_topDistribsCount
String _param_featureServerBufferSize
String _param_featureServerMask
FeatureFlags _param_featureFlags
unsigned long _param_mixtureDistribCount
MixtureFileWriterFormat _param_saveMixtureFileFormat
MixtureServerFileWriterFormat _param_saveMixtureServerFileFormat
SegServerFileWriterFormat _param_saveSegServerFileFormat
String _param_saveMixtureFileExtension
String _param_saveMixtureServerFileExtension
String _param_saveSegServerFileExtension
MixtureFileReaderFormat _param_loadMixtureFileFormat
SegServerFileReaderFormat _param_loadSegServerFileFormat
String _param_loadMixtureFileExtension
String _param_loadSegServerFileExtension
String _param_mixtureFilesPath
FeatureFileWriterFormat _param_saveFeatureFileFormat
SPRO3DataKind _param_saveFeatureFileSPro3DataKind
String _param_saveFeatureFileExtension
FeatureFileReaderFormat _param_loadFeatureFileFormat
unsigned long _param_loadFeatureFileVectSize
unsigned long _param_loadAudioFileChannel
String _param_loadFeatureFileExtension
String _param_loadAudioFileExtension
bool _param_loadFeatureFileBigEndian
bool _param_loadAudioFileBigEndian
String _param_featureServerMode
bool _param_loadMixtureFileBigEndian
String _param_featureFilesPath
String _param_audioFilesPath
String _param_segServerFilesPath
lk_t _param_minLLK
lk_t _param_maxLLK
DistribType _param_distribType
bool _param_bigEndian
real_t _param_sampleRate
XList _set

Friends

class TestConfig

Detailed Description

Class for configuration objects. A configuration objets is used to store parameters useful to create others objects like MixtureServer, StatServer ... Each parameter can be set and read.

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

Definition at line 84 of file Config.h.


Constructor & Destructor Documentation

Config::Config (  )

Definition at line 68 of file Config.cpp.

References reset().

Config::Config ( const FileName f ) [explicit]

Loads configuration data from a file

Parameters:
fthe file to read (path + name)

Definition at line 71 of file Config.cpp.

References load().

Config::Config ( const Config c )

Definition at line 74 of file Config.cpp.

References assign().

Config::~Config (  ) [virtual]

Definition at line 899 of file Config.cpp.


Member Function Documentation

void Config::assign ( const Config c ) [private]

Definition at line 83 of file Config.cpp.

References _param_audioFilesPath, _param_bigEndian, _param_computeLLKWithTopDistribs, _param_debug, _param_distribType, _param_featureFilesPath, _param_featureFlags, _param_featureServerBufferSize, _param_featureServerMask, _param_featureServerMemAlloc, _param_featureServerMode, _param_loadAudioFileBigEndian, _param_loadAudioFileChannel, _param_loadAudioFileExtension, _param_loadFeatureFileBigEndian, _param_loadFeatureFileExtension, _param_loadFeatureFileFormat, _param_loadFeatureFileMemAlloc, _param_loadFeatureFileVectSize, _param_loadMixtureFileBigEndian, _param_loadMixtureFileExtension, _param_loadMixtureFileFormat, _param_loadSegServerFileExtension, _param_loadSegServerFileFormat, _param_maxLLK, _param_minCov, _param_minLLK, _param_mixtureDistribCount, _param_mixtureFilesPath, _param_sampleRate, _param_saveFeatureFileExtension, _param_saveFeatureFileFormat, _param_saveFeatureFileSPro3DataKind, _param_saveMixtureFileExtension, _param_saveMixtureFileFormat, _param_saveMixtureServerFileExtension, _param_saveMixtureServerFileFormat, _param_saveSegServerFileExtension, _param_saveSegServerFileFormat, _param_segServerFilesPath, _param_topDistribsCount, _param_vectSize, _set, ASSIGN, existsParam_audioFilesPath, existsParam_bigEndian, existsParam_computeLLKWithTopDistribs, existsParam_debug, existsParam_distribType, existsParam_featureFilesPath, existsParam_featureFlags, existsParam_featureServerBufferSize, existsParam_featureServerMask, existsParam_featureServerMemAlloc, existsParam_featureServerMode, existsParam_loadAudioFileBigEndian, existsParam_loadAudioFileChannel, existsParam_loadAudioFileExtension, existsParam_loadFeatureFileBigEndian, existsParam_loadFeatureFileExtension, existsParam_loadFeatureFileFormat, existsParam_loadFeatureFileMemAlloc, existsParam_loadFeatureFileVectSize, existsParam_loadMixtureFileBigEndian, existsParam_loadMixtureFileExtension, existsParam_loadMixtureFileFormat, existsParam_loadSegServerFileExtension, existsParam_loadSegServerFileFormat, existsParam_maxLLK, existsParam_minCov, existsParam_minLLK, existsParam_mixtureDistribCount, existsParam_mixtureFilesPath, existsParam_sampleRate, existsParam_saveFeatureFileExtension, existsParam_saveFeatureFileFormat, existsParam_saveFeatureFileSPro3DataKind, existsParam_saveMixtureFileExtension, existsParam_saveMixtureFileFormat, existsParam_saveMixtureServerFileExtension, existsParam_saveMixtureServerFileFormat, existsParam_saveSegServerFileExtension, existsParam_saveSegServerFileFormat, existsParam_segServerFilesPath, existsParam_topDistribsCount, and existsParam_vectSize.

Referenced by Config(), and operator=().

void alize::Config::err ( const String  ) const [private]
bool Config::existsParam ( const String name ) const

Tests whether a parameter exists

Definition at line 291 of file Config.cpp.

References _set, alize::XList::findLine(), and NULL.

Referenced by alize::ConfigChecker::check(), and operator==().

bool Config::getBooleanParam ( const String name ) const
Exceptions:
ifthe param does not exist

Definition at line 283 of file Config.cpp.

References getParam(), and alize::String::toBool().

String Config::getClassName (  ) const [virtual]

Returns the name of the class

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

Implements alize::Object.

Definition at line 887 of file Config.cpp.

double Config::getFloatParam ( const String name ) const
Exceptions:
ifthe param does not exist

Definition at line 280 of file Config.cpp.

References getParam(), and alize::String::toDouble().

long Config::getIntegerParam ( const String name ) const
Exceptions:
ifthe param does not exist

Definition at line 277 of file Config.cpp.

References getParam(), and alize::String::toLong().

const String & Config::getParam ( const String name ) const
const String & Config::getParam_audioFilesPath (  ) const
Exceptions:
ifthe param does not exist

Definition at line 580 of file Config.cpp.

References _param_audioFilesPath, and existsParam_audioFilesPath.

Referenced by alize::AudioFileReader::getPath().

bool Config::getParam_bigEndian (  ) const
Exceptions:
ifthe param does not exist

Definition at line 604 of file Config.cpp.

References _param_bigEndian, and existsParam_bigEndian.

bool Config::getParam_computeLLKWithTopDistribs (  ) const
Exceptions:
ifthe param does not exist

Definition at line 324 of file Config.cpp.

References _param_computeLLKWithTopDistribs, and existsParam_computeLLKWithTopDistribs.

bool Config::getParam_debug (  ) const

Definition at line 332 of file Config.cpp.

References _param_debug.

DistribType Config::getParam_distribType (  ) const
Exceptions:
ifthe param does not exist

Definition at line 388 of file Config.cpp.

References _param_distribType, and existsParam_distribType.

const String & Config::getParam_featureFilesPath (  ) const
Exceptions:
ifthe param does not exist

Definition at line 572 of file Config.cpp.

References _param_featureFilesPath, and existsParam_featureFilesPath.

Referenced by alize::FeatureFileWriter::getFullFileName().

const FeatureFlags & Config::getParam_featureFlags (  ) const
Exceptions:
ifthe param does not exist

Definition at line 358 of file Config.cpp.

References _param_featureFlags, and existsParam_featureFlags.

const String & Config::getParam_featureServerBufferSize (  ) const

Can be a number or "ALL_FEATURES"

Exceptions:
ifthe param does not exist

Definition at line 342 of file Config.cpp.

References _param_featureServerBufferSize, and existsParam_featureServerBufferSize.

const String & Config::getParam_featureServerMask (  ) const

See method FeatureInputStreamModifier::setMask()

Exceptions:
ifthe param does not exist

Definition at line 350 of file Config.cpp.

References _param_featureServerMask, and existsParam_featureServerMask.

unsigned long Config::getParam_featureServerMemAlloc (  ) const
Exceptions:
ifthe param does not exist

Definition at line 316 of file Config.cpp.

References _param_featureServerMemAlloc, and existsParam_featureServerMemAlloc.

const String & Config::getParam_featureServerMode (  ) const
Exceptions:
ifthe param does not exist

Definition at line 540 of file Config.cpp.

References _param_featureServerMode, and existsParam_featureServerMode.

bool Config::getParam_loadAudioFileBigEndian (  ) const
Exceptions:
ifthe param does not exist

Definition at line 532 of file Config.cpp.

References _param_loadAudioFileBigEndian, and existsParam_loadAudioFileBigEndian.

unsigned long Config::getParam_loadAudioFileChannel (  ) const
Exceptions:
ifthe param does not exist

Definition at line 452 of file Config.cpp.

References _param_loadAudioFileChannel, and existsParam_loadAudioFileChannel.

Referenced by alize::AudioFileReader::getChannel().

const String & Config::getParam_loadAudioFileExtension (  ) const
Exceptions:
ifthe param does not exist

Definition at line 516 of file Config.cpp.

References _param_loadAudioFileExtension, and existsParam_loadAudioFileExtension.

Referenced by alize::AudioFileReader::getExt().

bool Config::getParam_loadFeatureFileBigEndian (  ) const
Exceptions:
ifthe param does not exist

Definition at line 524 of file Config.cpp.

References _param_loadFeatureFileBigEndian, and existsParam_loadFeatureFileBigEndian.

const String & Config::getParam_loadFeatureFileExtension (  ) const
Exceptions:
ifthe param does not exist

Definition at line 508 of file Config.cpp.

References _param_loadFeatureFileExtension, and existsParam_loadFeatureFileExtension.

FeatureFileReaderFormat Config::getParam_loadFeatureFileFormat (  ) const
Exceptions:
ifthe param does not exist

Definition at line 436 of file Config.cpp.

References _param_loadFeatureFileFormat, and existsParam_loadFeatureFileFormat.

unsigned long Config::getParam_loadFeatureFileMemAlloc (  ) const
Exceptions:
ifthe param does not exist

Definition at line 308 of file Config.cpp.

References _param_loadFeatureFileMemAlloc, and existsParam_loadFeatureFileMemAlloc.

unsigned long Config::getParam_loadFeatureFileVectSize (  ) const
Exceptions:
ifthe param does not exist

Definition at line 444 of file Config.cpp.

References _param_loadFeatureFileVectSize, and existsParam_loadFeatureFileVectSize.

bool Config::getParam_loadMixtureFileBigEndian (  ) const
Exceptions:
ifthe param does not exist

Definition at line 548 of file Config.cpp.

References _param_loadMixtureFileBigEndian, and existsParam_loadMixtureFileBigEndian.

const String & Config::getParam_loadMixtureFileExtension (  ) const
Exceptions:
ifthe param does not exist

Definition at line 556 of file Config.cpp.

References _param_loadMixtureFileExtension, and existsParam_loadMixtureFileExtension.

MixtureFileReaderFormat Config::getParam_loadMixtureFileFormat (  ) const
Exceptions:
ifthe param does not exist

Definition at line 460 of file Config.cpp.

References _param_loadMixtureFileFormat, and existsParam_loadMixtureFileFormat.

const String & Config::getParam_loadSegServerFileExtension (  ) const
Exceptions:
ifthe param does not exist

Definition at line 564 of file Config.cpp.

References _param_loadSegServerFileExtension, and existsParam_loadSegServerFileExtension.

SegServerFileReaderFormat Config::getParam_loadSegServerFileFormat (  ) const
Exceptions:
ifthe param does not exist

Definition at line 468 of file Config.cpp.

References _param_loadSegServerFileFormat, and existsParam_loadSegServerFileFormat.

Referenced by alize::SegServer::load().

lk_t Config::getParam_maxLLK (  ) const
Exceptions:
ifthe param does not exist

Definition at line 381 of file Config.cpp.

References _param_maxLLK, and existsParam_maxLLK.

real_t Config::getParam_minCov (  ) const
Exceptions:
ifthe param does not exist

Definition at line 294 of file Config.cpp.

References _param_minCov, and existsParam_minCov.

lk_t Config::getParam_minLLK (  ) const
Exceptions:
ifthe param does not exist

Definition at line 374 of file Config.cpp.

References _param_minLLK, and existsParam_minLLK.

unsigned long Config::getParam_mixtureDistribCount (  ) const
Exceptions:
ifthe param does not exist

Definition at line 366 of file Config.cpp.

References _param_mixtureDistribCount, and existsParam_mixtureDistribCount.

const String & Config::getParam_mixtureFilesPath (  ) const
Exceptions:
ifthe param does not exist

Definition at line 596 of file Config.cpp.

References _param_mixtureFilesPath, and existsParam_mixtureFilesPath.

real_t Config::getParam_sampleRate (  ) const
Exceptions:
ifthe param does not exist

Definition at line 612 of file Config.cpp.

References _param_sampleRate, and existsParam_sampleRate.

const String & Config::getParam_saveFeatureFileExtension (  ) const
Exceptions:
ifthe param does not exist

Definition at line 500 of file Config.cpp.

References _param_saveFeatureFileExtension, and existsParam_saveFeatureFileExtension.

Referenced by alize::FeatureFileWriter::getFullFileName().

FeatureFileWriterFormat Config::getParam_saveFeatureFileFormat (  ) const
Exceptions:
ifthe param does not exist

Definition at line 420 of file Config.cpp.

References _param_saveFeatureFileFormat, and existsParam_saveFeatureFileFormat.

SPRO3DataKind Config::getParam_saveFeatureFileSPro3DataKind (  ) const
Exceptions:
ifthe param does not exist

Definition at line 428 of file Config.cpp.

References _param_saveFeatureFileSPro3DataKind, and existsParam_saveFeatureFileSPro3DataKind.

const String & Config::getParam_saveMixtureFileExtension (  ) const
Exceptions:
ifthe param does not exist

Definition at line 476 of file Config.cpp.

References _param_saveMixtureFileExtension, and existsParam_saveMixtureFileExtension.

MixtureFileWriterFormat Config::getParam_saveMixtureFileFormat (  ) const
Exceptions:
ifthe param does not exist

Definition at line 396 of file Config.cpp.

References _param_saveMixtureFileFormat, and existsParam_saveMixtureFileFormat.

const String & Config::getParam_saveMixtureServerFileExtension (  ) const
Exceptions:
ifthe param does not exist

Definition at line 484 of file Config.cpp.

References _param_saveMixtureServerFileExtension, and existsParam_saveMixtureServerFileExtension.

MixtureServerFileWriterFormat Config::getParam_saveMixtureServerFileFormat (  ) const
Exceptions:
ifthe param does not exist

Definition at line 404 of file Config.cpp.

References _param_saveMixtureServerFileFormat, and existsParam_saveMixtureServerFileFormat.

const String & Config::getParam_saveSegServerFileExtension (  ) const
Exceptions:
ifthe param does not exist

Definition at line 492 of file Config.cpp.

References _param_saveSegServerFileExtension, and existsParam_saveSegServerFileExtension.

SegServerFileWriterFormat Config::getParam_saveSegServerFileFormat (  ) const
Exceptions:
ifthe param does not exist

Definition at line 412 of file Config.cpp.

References _param_saveSegServerFileFormat, and existsParam_saveSegServerFileFormat.

const String & Config::getParam_segServerFilesPath (  ) const
Exceptions:
ifthe param does not exist

Definition at line 588 of file Config.cpp.

References _param_segServerFilesPath, and existsParam_segServerFilesPath.

unsigned long Config::getParam_topDistribsCount (  ) const
Exceptions:
ifthe param does not exist

Definition at line 334 of file Config.cpp.

References _param_topDistribsCount, and existsParam_topDistribsCount.

unsigned long Config::getParam_vectSize (  ) const
Exceptions:
ifthe param does not exist

Definition at line 301 of file Config.cpp.

References _param_vectSize, and existsParam_vectSize.

Referenced by alize::DistribGF::create(), and alize::DistribGD::create().

const String & Config::getParamContent ( unsigned long  i ) const

Returns the parameter content number i

Returns:
a String object with the parameter content
Exceptions:
IndexOutOfBoundsException

Definition at line 266 of file Config.cpp.

References _set, alize::XLine::getElement(), and alize::XList::getLine().

Referenced by operator==(), setParam(), and alize::ConfigFileWriter::writeConfig().

unsigned long Config::getParamCount (  ) const

Returns the number of parameters stored.

Returns:
the number of parameters stored

Definition at line 261 of file Config.cpp.

References _set, and alize::XList::getLineCount().

Referenced by operator==(), and alize::ConfigFileWriter::writeConfig().

const String & Config::getParamName ( unsigned long  i ) const

Returns the parameter name number i

Returns:
a String object with the parameter name
Exceptions:
IndexOutOfBoundsException

Definition at line 263 of file Config.cpp.

References _set, alize::XLine::getElement(), and alize::XList::getLine().

Referenced by operator==(), setParam(), and alize::ConfigFileWriter::writeConfig().

void Config::load ( const FileName f )

Resets this Config object and loads configurations from a file

Parameters:
fthe file to read (path + name)
Exceptions:
IOExceptionif an I/O error occurs
FileNotFoundException

Definition at line 249 of file Config.cpp.

References alize::String::endsWith(), alize::ConfigFileReaderRaw::readConfig(), and alize::ConfigFileReaderXml::readConfig().

Referenced by Config().

bool Config::operator!= ( const Config c ) const

Definition at line 201 of file Config.cpp.

const Config & Config::operator= ( const Config c )

Definition at line 77 of file Config.cpp.

References assign().

bool Config::operator== ( const Config c ) const

Definition at line 179 of file Config.cpp.

References existsParam(), getParam(), getParamContent(), getParamCount(), and getParamName().

void Config::reset (  )

Resets this configuration. Deletes all parameters.

Definition at line 203 of file Config.cpp.

References _set, existsParam_audioFilesPath, existsParam_bigEndian, existsParam_distribType, existsParam_featureFilesPath, existsParam_featureFlags, existsParam_featureServerBufferSize, existsParam_featureServerMask, existsParam_featureServerMemAlloc, existsParam_featureServerMode, existsParam_loadAudioFileBigEndian, existsParam_loadAudioFileChannel, existsParam_loadAudioFileExtension, existsParam_loadFeatureFileBigEndian, existsParam_loadFeatureFileExtension, existsParam_loadFeatureFileFormat, existsParam_loadFeatureFileMemAlloc, existsParam_loadFeatureFileVectSize, existsParam_loadMixtureFileBigEndian, existsParam_loadMixtureFileExtension, existsParam_loadMixtureFileFormat, existsParam_loadSegServerFileExtension, existsParam_loadSegServerFileFormat, existsParam_maxLLK, existsParam_minCov, existsParam_minLLK, existsParam_mixtureDistribCount, existsParam_mixtureFilesPath, existsParam_sampleRate, existsParam_saveFeatureFileExtension, existsParam_saveFeatureFileFormat, existsParam_saveFeatureFileSPro3DataKind, existsParam_saveMixtureFileExtension, existsParam_saveMixtureFileFormat, existsParam_saveMixtureServerFileExtension, existsParam_saveMixtureServerFileFormat, existsParam_saveSegServerFileExtension, existsParam_saveSegServerFileFormat, existsParam_segServerFilesPath, existsParam_topDistribsCount, existsParam_vectSize, alize::XList::reset(), and setParam().

Referenced by Config(), alize::ConfigFileReaderXml::readConfig(), and alize::ConfigFileReaderRaw::readConfig().

void Config::save ( const FileName f ) const

Save a configuration in a file

Parameters:
fthe file to write in (path + name)
Exceptions:
IOExceptionif an I/O error occurs
FileNotFoundException

Definition at line 258 of file Config.cpp.

References alize::ConfigFileWriter::writeConfig().

void Config::setParam ( const String name,
const String content 
)

Adds (or replaces) a parameter in this config

Definition at line 620 of file Config.cpp.

References _param_audioFilesPath, _param_bigEndian, _param_computeLLKWithTopDistribs, _param_debug, _param_distribType, _param_featureFilesPath, _param_featureFlags, _param_featureServerBufferSize, _param_featureServerMask, _param_featureServerMemAlloc, _param_featureServerMode, _param_loadAudioFileBigEndian, _param_loadAudioFileChannel, _param_loadAudioFileExtension, _param_loadFeatureFileBigEndian, _param_loadFeatureFileExtension, _param_loadFeatureFileFormat, _param_loadFeatureFileMemAlloc, _param_loadFeatureFileVectSize, _param_loadMixtureFileBigEndian, _param_loadMixtureFileExtension, _param_loadMixtureFileFormat, _param_loadSegServerFileExtension, _param_loadSegServerFileFormat, _param_maxLLK, _param_minCov, _param_minLLK, _param_mixtureDistribCount, _param_mixtureFilesPath, _param_sampleRate, _param_saveFeatureFileExtension, _param_saveFeatureFileFormat, _param_saveFeatureFileSPro3DataKind, _param_saveMixtureFileExtension, _param_saveMixtureFileFormat, _param_saveMixtureServerFileExtension, _param_saveMixtureServerFileFormat, _param_saveSegServerFileExtension, _param_saveSegServerFileFormat, _param_segServerFilesPath, _param_topDistribsCount, _param_vectSize, _set, alize::XLine::addElement(), alize::XList::addLine(), existsParam_audioFilesPath, existsParam_bigEndian, existsParam_computeLLKWithTopDistribs, existsParam_debug, existsParam_distribType, existsParam_featureFilesPath, existsParam_featureFlags, existsParam_featureServerBufferSize, existsParam_featureServerMask, existsParam_featureServerMemAlloc, existsParam_featureServerMode, existsParam_loadAudioFileBigEndian, existsParam_loadAudioFileChannel, existsParam_loadAudioFileExtension, existsParam_loadFeatureFileBigEndian, existsParam_loadFeatureFileExtension, existsParam_loadFeatureFileFormat, existsParam_loadFeatureFileMemAlloc, existsParam_loadFeatureFileVectSize, existsParam_loadMixtureFileBigEndian, existsParam_loadMixtureFileExtension, existsParam_loadMixtureFileFormat, existsParam_loadSegServerFileExtension, existsParam_loadSegServerFileFormat, existsParam_maxLLK, existsParam_minCov, existsParam_minLLK, existsParam_mixtureDistribCount, existsParam_mixtureFilesPath, existsParam_sampleRate, existsParam_saveFeatureFileExtension, existsParam_saveFeatureFileFormat, existsParam_saveFeatureFileSPro3DataKind, existsParam_saveMixtureFileExtension, existsParam_saveMixtureFileFormat, existsParam_saveMixtureServerFileExtension, existsParam_saveMixtureServerFileFormat, existsParam_saveSegServerFileExtension, existsParam_saveSegServerFileFormat, existsParam_segServerFilesPath, existsParam_topDistribsCount, existsParam_vectSize, alize::Object::getDistribType(), alize::XLine::getElement(), alize::Object::getFeatureFileReaderFormat(), alize::Object::getFeatureFileWriterFormat(), alize::XList::getLine(), alize::Object::getMixtureFileReaderFormat(), alize::Object::getMixtureFileWriterFormat(), alize::Object::getMixtureServerFileWriterFormat(), alize::Object::getSegServerFileReaderFormat(), alize::Object::getSegServerFileWriterFormat(), alize::Object::getSPro3DataKind(), alize::String::getToken(), alize::String::isEmpty(), alize::String::length(), NULL, alize::XList::rewind(), alize::FeatureFlags::set(), alize::String::toBool(), alize::String::toDouble(), and alize::String::toULong().

Referenced by alize::CmdLine::copyIntoConfig(), alize::ConfigFileReaderXml::eventClosingElement(), alize::ConfigFileReaderRaw::readConfig(), reset(), and setParam().

void Config::setParam ( const Config c )

Copy the parameters of the config c in this config

Definition at line 881 of file Config.cpp.

References _set, alize::XList::getLineCount(), getParamContent(), getParamName(), and setParam().

String Config::toString (  ) const [virtual]

This method is frequently overridden in the derived classes. If it is not, it returns the name of the class of the object and the address of the object

Returns:
a description of the object

Reimplemented from alize::Object.

Definition at line 889 of file Config.cpp.

References _set, alize::XLine::getElement(), alize::XList::getLine(), NULL, and alize::XList::rewind().


Friends And Related Function Documentation

friend class TestConfig [friend]

Definition at line 86 of file Config.h.


Member Data Documentation

Definition at line 430 of file Config.h.

Referenced by assign(), getParam_audioFilesPath(), and setParam().

Definition at line 435 of file Config.h.

Referenced by assign(), getParam_bigEndian(), and setParam().

Definition at line 398 of file Config.h.

Referenced by assign(), getParam_computeLLKWithTopDistribs(), and setParam().

Definition at line 399 of file Config.h.

Referenced by assign(), getParam_debug(), and setParam().

Definition at line 434 of file Config.h.

Referenced by assign(), getParam_distribType(), and setParam().

Definition at line 429 of file Config.h.

Referenced by assign(), getParam_featureFilesPath(), and setParam().

Definition at line 404 of file Config.h.

Referenced by assign(), getParam_featureFlags(), and setParam().

Definition at line 401 of file Config.h.

Referenced by assign(), getParam_featureServerBufferSize(), and setParam().

Definition at line 403 of file Config.h.

Referenced by assign(), getParam_featureServerMask(), and setParam().

Definition at line 397 of file Config.h.

Referenced by assign(), getParam_featureServerMemAlloc(), and setParam().

Definition at line 427 of file Config.h.

Referenced by assign(), getParam_featureServerMode(), and setParam().

Definition at line 426 of file Config.h.

Referenced by assign(), getParam_loadAudioFileBigEndian(), and setParam().

Definition at line 422 of file Config.h.

Referenced by assign(), getParam_loadAudioFileChannel(), and setParam().

Definition at line 424 of file Config.h.

Referenced by assign(), getParam_loadAudioFileExtension(), and setParam().

Definition at line 425 of file Config.h.

Referenced by assign(), getParam_loadFeatureFileBigEndian(), and setParam().

Definition at line 423 of file Config.h.

Referenced by assign(), getParam_loadFeatureFileExtension(), and setParam().

Definition at line 420 of file Config.h.

Referenced by assign(), getParam_loadFeatureFileFormat(), and setParam().

Definition at line 396 of file Config.h.

Referenced by assign(), getParam_loadFeatureFileMemAlloc(), and setParam().

Definition at line 421 of file Config.h.

Referenced by assign(), getParam_loadFeatureFileVectSize(), and setParam().

Definition at line 428 of file Config.h.

Referenced by assign(), getParam_loadMixtureFileBigEndian(), and setParam().

Definition at line 414 of file Config.h.

Referenced by assign(), getParam_loadMixtureFileExtension(), and setParam().

Definition at line 412 of file Config.h.

Referenced by assign(), getParam_loadMixtureFileFormat(), and setParam().

Definition at line 415 of file Config.h.

Referenced by assign(), getParam_loadSegServerFileExtension(), and setParam().

Definition at line 413 of file Config.h.

Referenced by assign(), getParam_loadSegServerFileFormat(), and setParam().

Definition at line 433 of file Config.h.

Referenced by assign(), getParam_maxLLK(), and setParam().

Definition at line 394 of file Config.h.

Referenced by assign(), getParam_minCov(), and setParam().

Definition at line 432 of file Config.h.

Referenced by assign(), getParam_minLLK(), and setParam().

Definition at line 405 of file Config.h.

Referenced by assign(), getParam_mixtureDistribCount(), and setParam().

Definition at line 416 of file Config.h.

Referenced by assign(), getParam_mixtureFilesPath(), and setParam().

Definition at line 436 of file Config.h.

Referenced by assign(), getParam_sampleRate(), and setParam().

Definition at line 419 of file Config.h.

Referenced by assign(), getParam_saveFeatureFileExtension(), and setParam().

Definition at line 417 of file Config.h.

Referenced by assign(), getParam_saveFeatureFileFormat(), and setParam().

Definition at line 418 of file Config.h.

Referenced by assign(), getParam_saveFeatureFileSPro3DataKind(), and setParam().

Definition at line 409 of file Config.h.

Referenced by assign(), getParam_saveMixtureFileExtension(), and setParam().

Definition at line 406 of file Config.h.

Referenced by assign(), getParam_saveMixtureFileFormat(), and setParam().

Definition at line 410 of file Config.h.

Referenced by assign(), getParam_saveMixtureServerFileExtension(), and setParam().

Definition at line 407 of file Config.h.

Referenced by assign(), getParam_saveMixtureServerFileFormat(), and setParam().

Definition at line 411 of file Config.h.

Referenced by assign(), getParam_saveSegServerFileExtension(), and setParam().

Definition at line 408 of file Config.h.

Referenced by assign(), getParam_saveSegServerFileFormat(), and setParam().

Definition at line 431 of file Config.h.

Referenced by assign(), getParam_segServerFilesPath(), and setParam().

unsigned long alize::Config::_param_topDistribsCount [private]

Definition at line 400 of file Config.h.

Referenced by assign(), getParam_topDistribsCount(), and setParam().

unsigned long alize::Config::_param_vectSize [private]

Definition at line 395 of file Config.h.

Referenced by assign(), getParam_vectSize(), and setParam().

Definition at line 389 of file Config.h.

Referenced by assign(), getParam_audioFilesPath(), reset(), and setParam().

Definition at line 386 of file Config.h.

Referenced by assign(), getParam_bigEndian(), reset(), and setParam().

Definition at line 353 of file Config.h.

Referenced by assign(), getParam_computeLLKWithTopDistribs(), and setParam().

Definition at line 354 of file Config.h.

Referenced by assign(), and setParam().

Definition at line 362 of file Config.h.

Referenced by assign(), getParam_distribType(), reset(), and setParam().

Definition at line 388 of file Config.h.

Referenced by assign(), getParam_featureFilesPath(), reset(), and setParam().

Definition at line 358 of file Config.h.

Referenced by assign(), getParam_featureFlags(), reset(), and setParam().

Definition at line 356 of file Config.h.

Referenced by assign(), getParam_featureServerBufferSize(), reset(), and setParam().

Definition at line 357 of file Config.h.

Referenced by assign(), getParam_featureServerMask(), reset(), and setParam().

Definition at line 352 of file Config.h.

Referenced by assign(), getParam_featureServerMemAlloc(), reset(), and setParam().

Definition at line 382 of file Config.h.

Referenced by assign(), getParam_featureServerMode(), reset(), and setParam().

Definition at line 381 of file Config.h.

Referenced by assign(), getParam_loadAudioFileBigEndian(), reset(), and setParam().

Definition at line 379 of file Config.h.

Referenced by assign(), getParam_loadAudioFileExtension(), reset(), and setParam().

Definition at line 380 of file Config.h.

Referenced by assign(), getParam_loadFeatureFileBigEndian(), reset(), and setParam().

Definition at line 378 of file Config.h.

Referenced by assign(), getParam_loadFeatureFileExtension(), reset(), and setParam().

Definition at line 369 of file Config.h.

Referenced by assign(), getParam_loadFeatureFileFormat(), reset(), and setParam().

Definition at line 351 of file Config.h.

Referenced by assign(), getParam_loadFeatureFileMemAlloc(), reset(), and setParam().

Definition at line 370 of file Config.h.

Referenced by assign(), getParam_loadFeatureFileVectSize(), reset(), and setParam().

Definition at line 383 of file Config.h.

Referenced by assign(), getParam_loadMixtureFileBigEndian(), reset(), and setParam().

Definition at line 384 of file Config.h.

Referenced by assign(), getParam_loadMixtureFileExtension(), reset(), and setParam().

Definition at line 372 of file Config.h.

Referenced by assign(), getParam_loadMixtureFileFormat(), reset(), and setParam().

Definition at line 385 of file Config.h.

Referenced by assign(), getParam_loadSegServerFileExtension(), reset(), and setParam().

Definition at line 373 of file Config.h.

Referenced by assign(), getParam_loadSegServerFileFormat(), reset(), and setParam().

Definition at line 361 of file Config.h.

Referenced by assign(), getParam_maxLLK(), reset(), and setParam().

Definition at line 349 of file Config.h.

Referenced by assign(), getParam_minCov(), reset(), and setParam().

Definition at line 360 of file Config.h.

Referenced by assign(), getParam_minLLK(), reset(), and setParam().

Definition at line 359 of file Config.h.

Referenced by assign(), getParam_mixtureDistribCount(), reset(), and setParam().

Definition at line 391 of file Config.h.

Referenced by assign(), getParam_mixtureFilesPath(), reset(), and setParam().

Definition at line 387 of file Config.h.

Referenced by assign(), getParam_sampleRate(), reset(), and setParam().

Definition at line 377 of file Config.h.

Referenced by assign(), getParam_saveFeatureFileExtension(), reset(), and setParam().

Definition at line 367 of file Config.h.

Referenced by assign(), getParam_saveFeatureFileFormat(), reset(), and setParam().

Definition at line 368 of file Config.h.

Referenced by assign(), getParam_saveFeatureFileSPro3DataKind(), reset(), and setParam().

Definition at line 374 of file Config.h.

Referenced by assign(), getParam_saveMixtureFileExtension(), reset(), and setParam().

Definition at line 364 of file Config.h.

Referenced by assign(), getParam_saveMixtureFileFormat(), reset(), and setParam().

Definition at line 375 of file Config.h.

Referenced by assign(), getParam_saveMixtureServerFileExtension(), reset(), and setParam().

Definition at line 365 of file Config.h.

Referenced by assign(), getParam_saveMixtureServerFileFormat(), reset(), and setParam().

Definition at line 376 of file Config.h.

Referenced by assign(), getParam_saveSegServerFileExtension(), reset(), and setParam().

Definition at line 366 of file Config.h.

Referenced by assign(), getParam_saveSegServerFileFormat(), reset(), and setParam().

Definition at line 390 of file Config.h.

Referenced by assign(), getParam_segServerFilesPath(), reset(), and setParam().

Definition at line 355 of file Config.h.

Referenced by assign(), getParam_topDistribsCount(), reset(), and setParam().

Definition at line 350 of file Config.h.

Referenced by assign(), getParam_vectSize(), reset(), and setParam().


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