source: trunk/IPs/systemC/processor/Morpheo/Tools/Viewer/Bdd/src/ListePorts_countPort.cpp

Last change on this file was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 482 bytes
Line 
1/*
2 *
3 * [desc.]
4 */
5#include "Tools/Viewer/Bdd/include/ListePorts.h"
6
7namespace morpheo{
8namespace tools{
9namespace viewer{
10namespace bdd{     
11 
12  int ListePorts::countPort(string loc)
13  {
14    int count=0;
15
16    for(QList<morpheo::tools::viewer::bdd::Port>::iterator it   \
17          = ports->begin();it!=ports->end();++it)
18      {
19        if( !strcmp(loc.c_str(),it->getLocalisation().c_str()))
20          count++;
21      }
22    return count;
23  }
24
25};//end bdd
26};//end viewer
27};//end tools
28};//end morpheo
Note: See TracBrowser for help on using the repository browser.