示例#1
0
// 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);
		} 
	}
}
示例#2
0
    // 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;
            }
	}
    }