输出ice的context型的参数

void LogParameter(const Ice::Context& ctx, const CLoggerPtr& _logger)
{

    std::string logStr = "";

    if(ctx.empty())
  {
      logStr = "获得参数为空";
  }
  else
  {
     logStr = "获得如下参数:";

     for(Ice::Context::const_iterator i=ctx.begin();i!=ctx.end();i++)
    {
      logStr = logStr + "\n" + i->first + ":" + i->second

    }

  }
}

posted @ 2016-09-05 09:47  初见不如不相见  阅读(228)  评论(0编辑  收藏  举报