source: trunk/IPs/systemC/processor/Morpheo/Tools/Viewer/Bdd/src/BaseV_afficheBaseConsole.cpp @ 27

Last change on this file since 27 was 26, checked in by chou, 17 years ago

Release 3 du viewer:
Etape 1 et 2 du projet complet et à jour.

File size: 3.7 KB
Line 
1/*
2 *
3 * [desc.]
4 */
5#include "Tools/Viewer/Bdd/include/BaseV.h"
6
7namespace morpheo{
8namespace tools{
9namespace viewer{
10namespace bdd{     
11  void BaseV::afficheBaseConsole(){
12     for ( QList<BaseP>::iterator it\
13        = pos->begin(); it != pos->end(); ++it)
14    {
15     
16      morpheo::tools::viewer::bdd::Entity *test=(it->getEntity());
17      string n2=test->getName();
18      string n=it->getComment();
19      cout << n << endl ;
20      cout << "----Entity-----------------------------------------" <<endl;
21      cout << "Entity name:"<< n2 <<" level:"<< it->getLevel()<< endl;
22      cout << "------------------ports east-----------------------" <<endl;
23     
24      QList<Port> porteast=test->getPortEast(new Coord(50,50,50,50));
25      for (QList<Port>::iterator it2\
26             = porteast.begin(); it2 != porteast.end(); ++it2)
27        {
28          cout <<  "name : " <<it2->getName() << endl;
29          cout << it2->getComment() << endl;
30          cout <<  "x:"<<it2->get_x() << endl;
31          cout <<  "y:"<<it2->get_y() << endl;
32          cout <<  "direction : " <<it2->getDirection()<< endl;
33          cout << endl;
34        }
35     
36
37      cout << "-----------------ports west-------------------------" <<endl;
38      QList<Port> portwest=test->getPortWest(new Coord(50,50,50,50));
39      for (QList<Port>::iterator it2\
40             = portwest.begin(); it2 != portwest.end(); ++it2)
41        {
42          cout <<  "name : " << it2->getName() << endl;
43          cout << it2->getComment() << endl;
44          cout <<  "x:"<<it2->get_x() << endl;
45          cout <<  "y:"<<it2->get_y() << endl;
46          cout <<  "direction : " <<it2->getDirection()<< endl;
47          cout << endl;
48        }
49     
50     
51      cout << "-----------------ports south---------------------------" <<endl;
52     
53      QList<Port> portsouth=test->getPortSouth(new Coord(50,50,50,50));
54      for (QList<Port>::iterator it2\
55             = portsouth.begin(); it2 != portsouth.end(); ++it2)
56        {
57          cout << "name : " << it2->getName() << endl;
58          cout << it2->getComment() << endl;
59          cout << "x:"<<it2->get_x() << endl;
60          cout << "y:"<<it2->get_y() << endl;
61          cout << "direction :" << it2->getDirection()<< endl;
62          cout << endl;
63        }
64     
65      cout << "-----------------ports north---------------------------" <<endl;
66      QList<Port> portnorth=test->getPortNorth(new Coord(50,50,50,50));
67      for (QList<Port>::iterator it2\
68             = portnorth.begin(); it2 != portnorth.end(); ++it2)
69        {
70          cout << "name : " << it2->getName() << endl;
71          cout << it2->getComment() << endl;
72          cout << "x:"<<it2->get_x() << endl;
73          cout << "y:"<<it2->get_y() << endl;
74          cout << "direction :" << it2->getDirection()<< endl;
75          cout << endl;
76        }
77
78      if (it->getArchitecture()!=NULL){
79
80      cout << "----architecture--------------------------------------" <<endl;
81     
82      QList<Component> *c=new QList<Component>\
83        (*((it->getArchitecture())->getComponent()) );
84       for (QList<Component>::iterator it2\
85              = c->begin(); it2 != c->end(); ++it2)
86         {
87           cout << "--------component--------------------------------------" <<endl;
88           cout << "name :" << it2->getName() <<endl;
89         
90           cout << "comment :" << it2->getComment() <<endl;
91           cout << "x:"<<(it2->get_x()) << endl;
92           cout << "y:"<<(it2->get_y()) << endl;
93           
94           
95           QList<PortMap> *pm=new QList<PortMap>(*(it2->getPortMap()));
96           for (QList<PortMap>::iterator it3\
97                  = pm->begin(); it3 != pm->end(); ++it3)
98             {
99               cout << "------------------portmap----------------------------" <<endl;
100           cout << "name :" << it3->getName() <<endl;
101           cout << "port :" << it3->getPort() <<endl;
102           cout << "comment :" << it3->getComment() <<endl;
103
104           
105           
106             }
107         }
108      }//if
109      cout << endl<< "************    fin BASEP  *******************"<<endl <<endl;
110       
111    }//for
112     
113  }
114 
115};//end bdd
116};//end viewer
117};//end tools
118};//end morpheo
Note: See TracBrowser for help on using the repository browser.