示例#1
0
 Iptcdatum& IptcData::operator[](const std::string& key)
 {
     IptcKey iptcKey(key);
     iterator pos = findKey(iptcKey);
     if (pos == end()) {
         add(Iptcdatum(iptcKey));
         pos = findKey(iptcKey);
     }
     return *pos;
 }
示例#2
0
 int IptcData::add(const IptcKey& key, Value* value)
 {
     return add(Iptcdatum(key, value));
 }