60 const std::string &val,
bool replace)
63 std::map<std::string, std::string>::iterator it;
68 it = entXtra->attrMap.find(key);
69 if (it != entXtra->attrMap.end())
70 {
if (!replace)
return false;
76 if (found) it->second = val;
77 else entXtra->attrMap.insert(std::make_pair(key, val));
143 std::map<std::string, std::string>::iterator itM;
144 std::vector<const char *> attrDel;
145 std::vector<const char *>::iterator itV;
148 for (itM = entXtra->attrMap.begin();
149 itM != entXtra->attrMap.end(); itM++)
150 {rc = attrCB.
Attr(itM->first.c_str(), itM->second.c_str());
153 attrDel.push_back(itM->first.c_str());
158 for (itV = attrDel.begin(); itV != attrDel.end(); itV++)
159 entXtra->attrMap.erase(std::string(*itV));