// MAPPED // void Section::setComment(const char *name, const char *comment) { if(name) { std::string myname=name; KeyValue *mydata = d_kv_map[myname]; if(mydata) { mydata->setComment(comment); } } }
// MAPPED // void Section::setValue(const char *name, const char *value, const char *comment) { if(name) { std::string myname=name; KeyValue *mydata = d_kv_map[myname]; if(mydata) { mydata->setValue(value); mydata->setComment(comment); mydata->isDeleted(false); } else { KeyValue *newdata = new KeyValue(name, value, comment); d_allDataVector.push_back(newdata); d_kv_vector.push_back(newdata); d_kv_map[myname] = newdata; } } }