Last change
on this file since 21 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:
1.3 KB
|
Line | |
---|
1 | #ifndef morpheo_tools_viewer_parser_h |
---|
2 | #define morpheo_tools_viewer_parser_h |
---|
3 | |
---|
4 | #include <qxml.h> |
---|
5 | #include <qdom.h> |
---|
6 | #include <iostream> |
---|
7 | #include <list> |
---|
8 | #include <iterator> |
---|
9 | |
---|
10 | #include <qlist.h> |
---|
11 | #include "Tools/Viewer/Bdd/include/BaseV.h" |
---|
12 | #include "Tools/Viewer/Bdd/include/BaseP.h" |
---|
13 | #include "Tools/Viewer/Bdd/include/Entity.h" |
---|
14 | #include "Tools/Viewer/Bdd/include/Architecture.h" |
---|
15 | #include "Tools/Viewer/Bdd/include/Component.h" |
---|
16 | #include "Tools/Viewer/Bdd/include/Port.h" |
---|
17 | #include "Tools/Viewer/Bdd/include/PortMap.h" |
---|
18 | |
---|
19 | |
---|
20 | |
---|
21 | using namespace std; |
---|
22 | |
---|
23 | |
---|
24 | namespace morpheo{ |
---|
25 | namespace tools{ |
---|
26 | namespace viewer{ |
---|
27 | namespace parser{ |
---|
28 | |
---|
29 | class Parse |
---|
30 | { |
---|
31 | private: |
---|
32 | string s; |
---|
33 | string absolutePath; |
---|
34 | |
---|
35 | protected: |
---|
36 | morpheo::tools::viewer::bdd::BaseV *base; |
---|
37 | morpheo::tools::viewer::bdd::BaseP *pos; |
---|
38 | morpheo::tools::viewer::bdd::Entity *ent; |
---|
39 | morpheo::tools::viewer::bdd::Architecture *arch; |
---|
40 | morpheo::tools::viewer::bdd::Component *ctemp; |
---|
41 | // morpheo::tools::viewer::bdd::Param *param; |
---|
42 | |
---|
43 | |
---|
44 | |
---|
45 | public: |
---|
46 | |
---|
47 | Parse(void); |
---|
48 | ~Parse(void); |
---|
49 | void parser_pos(QDomNode n); |
---|
50 | //void ParseParam(void); |
---|
51 | int open_file(string name); |
---|
52 | //void saveFile(string name); |
---|
53 | morpheo::tools::viewer::bdd::BaseV *getBaseV(); |
---|
54 | |
---|
55 | |
---|
56 | //void refresh(); |
---|
57 | |
---|
58 | |
---|
59 | |
---|
60 | };//end class parse |
---|
61 | };//end parser |
---|
62 | };//end viewer |
---|
63 | };//end tools |
---|
64 | };//end morpheo |
---|
65 | |
---|
66 | |
---|
67 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.