Beispiel #1
0
 bool GetProperty(const mstrings_t& properties, 
     const ACE_TString& prop, 
     ACE_TString& value)
 {
     mstrings_t::const_iterator ite = properties.find(prop);
     if( ite != properties.end() )
     {
         value = (*ite).second;
         if(value.length()>MAX_STRING_LENGTH)
             value.resize(MAX_STRING_LENGTH);
         return true;
     }
     else
         return false;
 }