Exemplo n.º 1
0
bool unicomm::is_allowed_reply(const config& conf, 
                               const string& request_name, 
                               const string& reply_name)
{
  const strings_type& allowed_answers = conf.message_answers(request_name);

  return allowed_answers.empty()? true: 
    std::find(allowed_answers.begin(), allowed_answers.end(), reply_name) != 
      allowed_answers.end();
}