MCPcopy Create free account
hub / github.com/audeering/opensmile / addReader

Method addReader

src/core/configManager.cpp:2666–2679  ·  view source on GitHub ↗

order in which readers are added determines their priority, readers added last, will overwrite values from readers added prior to them */

Source from the content-addressed store, hash-verified

2664/* order in which readers are added determines their priority,
2665 readers added last, will overwrite values from readers added prior to them */
2666int cConfigManager::addReader(cConfigReader *_reader)
2667{
2668 if (_reader == NULL) return -1;
2669 if (nReaders >= nReadersAlloc) { // realloc if true
2670 cConfigReader **tmp = (cConfigReader **)realloc(reader, sizeof(cConfigReader*) * (nReadersAlloc+NEL_ALLOC_BLOCK));
2671 if (tmp != NULL) {
2672 reader = tmp;
2673 nReadersAlloc += NEL_ALLOC_BLOCK;
2674 } else { OUT_OF_MEMORY; }
2675 }
2676 _reader->setCmdparser(cmdparser);
2677 reader[nReaders] = _reader;
2678 return nReaders++;
2679}
2680
2681int cConfigManager::addInstance(ConfigInstance *_inst)
2682{

Callers 2

smile_initializeFunction · 0.80
mainFunction · 0.80

Calls 1

setCmdparserMethod · 0.80

Tested by

no test coverage detected