| 110 | } |
| 111 | |
| 112 | int ConfigValueObj::missingFrom(const ConfigValue *val) |
| 113 | { |
| 114 | if (val==NULL) return 0; |
| 115 | if (val->getType() != getType()) CONF_MANAGER_ERR("ConfigValue::copyFrom, cannot copy from incompatible type (%i)!",val->getType()); |
| 116 | if (obj != NULL) { |
| 117 | return obj->missingFrom(val->getObj()); |
| 118 | } else { |
| 119 | //obj = val->getObj(); freeObj=0; // TODO: nicer copy mechanism... e.g. copy constructor...? |
| 120 | CONF_MANAGER_ERR("ConfigValueObj::missingFrom: ConfigInstance copy not yet supported!"); |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | int ConfigValueObj::updateWith(const ConfigValue *val) |
| 125 | { |
no test coverage detected