source: trunk/IPs/systemC/processor/Morpheo/Tools/Viewer/Bdd/include/Port.h @ 32

Last change on this file since 32 was 20, checked in by chou, 17 years ago

1ere release du Viewer :

  • Parseur xml sur Base de données
  • Chargement d'un fichier de positions
  • Dessin du top-level
  • Dessin des ports du top level
  • Dessin des sous composants
  • Dessin des ports de ces sous composants

les valeurs de positions et de taille sont en %.

File size: 926 bytes
Line 
1#ifndef morpheo_tools_viewer_bdd_Port_h
2#define morpheo_tools_viewer_bdd_Port_h
3
4#include <iostream>
5//enum Mydirection={"in","out","inout"}d;
6//enum Mylocalisation={"north","south","east","west"}l;
7 
8
9using namespace std;
10namespace morpheo{
11namespace tools{
12namespace viewer{
13namespace bdd{     
14
15  class Port
16    {
17    private:
18      string comment;
19      string name;
20      int pos_x;
21      int pos_y;
22      string direction;
23      string localisation;
24    protected:
25     
26    public:
27      int get_x();//LONGUEUR EN LONG
28      int get_y();//LONGUEUR EN LARGE
29      void set_x(int v);
30      void set_y(int v);
31      string getComment();
32      string getName();
33      string getDirection();
34      string getLocalisation();
35      Port(string n,string d,string l);
36      Port(Port *p);
37      ~Port();
38      void setComment(string s);
39    };//end class Port
40
41};//end bdd
42};//end viewer
43};//end tools
44};//end morpheo
45
46#endif
Note: See TracBrowser for help on using the repository browser.