Esempio n. 1
0
void PrintProp(int actor,const MyUtil::Str2StrMap & props){
  ostringstream oss;
  oss << "PrintProp uid:" << actor;
  for(Str2StrMap::const_iterator i = props.begin(); i != props.end();++i){
    oss << " " << i->first << ":" << i->second;
  }
  MCE_INFO(oss.str());
}
Esempio n. 2
0
void
MyUtil::__writeStr2StrMap(::IceInternal::BasicStream* __os, const ::MyUtil::Str2StrMap& v)
{
    __os->writeSize(::Ice::Int(v.size()));
    ::MyUtil::Str2StrMap::const_iterator p;
    for(p = v.begin(); p != v.end(); ++p)
    {
        __os->write(p->first);
        __os->write(p->second);
    }
}
Esempio n. 3
0
void SchemaManager::getPropsString(const MyUtil::Str2StrMap& props, 
    string& props_str) {
  if (props.empty()) {
    return;
  }
  MyUtil::Str2StrMap::const_iterator it = props.begin();
  props_str.append(it->first);
  props_str.append(":");
  props_str.append(it->second);
  ++it;
  for (; it != props.end(); ++it) {
    props_str.append(",");
    props_str.append(it->first);
    props_str.append(":");
    props_str.append(it->second);
  }
}