| 122 | } |
| 123 | |
| 124 | int 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 | |
| 137 | ConfigValueObj::~ConfigValueObj() |
no test coverage detected