Beispiel #1
0
void PacketAnalyzer::config() {
	ifstream trace_list(mConfigParam.getTraceList().c_str());
	string s;
	while (getline(trace_list, s)) {
		mTraceList.push_back(s);
	}

	//measurement type
	if (mConfigParam.getMeasumentTask().compare(CONFIG_PARAM_MEASUREMENT_TCPFLOW) == 0){
	    FlowAbstract* fa=new FlowAbstract();
	    fa->configTraceType(mConfigParam.getContextType());
	    mTrafficAbstract.push_back((int*)fa);
	}
}
PB_DS_CLASS_T_DEC
void
PB_DS_CLASS_C_DEC::
trace() const
{
  std::cerr << static_cast<unsigned long>(m_num_e) << " " 
	    << static_cast<unsigned long>(m_num_used_e) << std::endl;

  for (size_type i = 0; i < m_num_e; ++i)
    {
      std::cerr << static_cast<unsigned long>(i) << " ";
      trace_list(m_entries[i]);
      std::cerr << std::endl;
    }
}