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

Method updateWith

src/core/configManager.cpp:124–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124int ConfigValueObj::updateWith(const ConfigValue *val)
125{
126 if (val==NULL) return 0;
127 if (val->getType() != getType()) CONF_MANAGER_ERR("ConfigValue::copyFrom, cannot copy from incompatible type (%i)!",val->getType());
128 if (obj != NULL) {
129 return obj->updateWith(val->getObj());
130 } else {
131 //obj = val->getObj(); freeObj=0; // TODO: nicer copy mechanism... e.g. copy constructor...?
132 CONF_MANAGER_ERR("ConfigValueObj::updateWith: ConfigInstance copy not yet supported!");
133 }
134}
135
136
137ConfigValueObj::~ConfigValueObj()

Callers 1

updateInstanceMethod · 0.45

Calls 4

getTypeMethod · 0.45
getObjMethod · 0.45
getNMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected