]> SALOME platform Git repositories - modules/kernel.git/blob - src/ModuleCatalog/SALOME_ModuleCatalog_Handler.hxx
Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/kernel.git] / src / ModuleCatalog / SALOME_ModuleCatalog_Handler.hxx
1 //  SALOME ModuleCatalog : implementation of ModuleCatalog server which parsers xml description of modules
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5 // 
6 //  This library is free software; you can redistribute it and/or 
7 //  modify it under the terms of the GNU Lesser General Public 
8 //  License as published by the Free Software Foundation; either 
9 //  version 2.1 of the License. 
10 // 
11 //  This library is distributed in the hope that it will be useful, 
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
14 //  Lesser General Public License for more details. 
15 // 
16 //  You should have received a copy of the GNU Lesser General Public 
17 //  License along with this library; if not, write to the Free Software 
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
19 // 
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //
23 //
24 //  File   : SALOME_ModuleCatalog_Handler.hxx
25 //  Author : Estelle Deville
26 //  Module : SALOME
27 //  $Header$
28
29 #ifndef SALOME_CATALOG_HANDLER_H
30 #define SALOME_CATALOG_HANDLER_H
31
32 #include <SALOME_ModuleCatalog.hxx>
33
34 #include "SALOME_ModuleCatalog_Parser.hxx"
35
36 #include <string>
37 #include <stack>
38 #include <map>
39
40 #include <libxml/parser.h>
41
42 class MODULECATALOG_EXPORT SALOME_ModuleCatalog_Handler
43 {
44 public:
45   //! standard constructor
46   SALOME_ModuleCatalog_Handler(ParserPathPrefixes& pathList,ParserComponents& moduleList,ParserTypes& typeMap,TypeList& typeList);
47
48   //! standard destructor
49   virtual ~SALOME_ModuleCatalog_Handler();
50
51   void ProcessXmlDocument(xmlDocPtr theDoc);
52  
53 private:
54
55   const char *test_path_prefix_name ;
56   const char *test_computer_name ;
57   const char *test_computer_list ;
58   const char *test_path_prefix ;
59   const char *test_path_prefix_list;
60
61   const char *test_component_name;
62   const char *test_component_username;
63   const char *test_component_type ;
64   const char *test_component_multistudy ;
65   const char *test_component_icon ;
66   const char *test_component_impltype;
67   const char *test_component_implname;
68   const char *test_component_version;
69   const char *test_component_comment;
70   
71   const char *test_interface_name;
72   
73   const char *test_service_name;
74   const char *test_defaultservice;
75   const char *test_typeofnode;
76   
77   const char *test_inParameter_type;
78   const char *test_inParameter_name;
79   const char *test_inParameter;
80   const char *test_inParameter_list;
81   
82   const char *test_outParameter_type;
83   const char *test_outParameter_name;
84   const char *test_outParameter;
85   const char *test_outParameter_list;
86   
87   const char *test_inDataStreamParameter_type;
88   const char *test_inDataStreamParameter_name;
89   const char *test_inDataStreamParameter_dependency;
90   const char *test_inDataStreamParameter;
91   const char *test_inDataStreamParameter_list;
92   
93   const char *test_outDataStreamParameter_type;
94   const char *test_outDataStreamParameter_name;
95   const char *test_outDataStreamParameter_dependency;
96   const char *test_outDataStreamParameter;
97   const char *test_outDataStreamParameter_list;
98   
99   const char *test_service;
100   const char *test_service_list;
101   const char *test_interface_list;
102   const char *test_constraint;
103   
104   const char *test_component_list;
105   const char *test_component;
106   
107   ParserPathPrefix _pathPrefix;
108   
109   ParserComponent _aModule;
110   
111   ParserPathPrefixes&  _pathList;
112   ParserComponents&    _moduleList;
113   
114   ParserInterfaces _interfaceList;
115   ParserInterface  _aInterface;
116   
117   ParserServices   _serviceList;
118   ParserService    _aService;
119
120   ParserParameters _inParamList;
121   ParserParameter  _inParam;
122   
123   ParserParameters _outParamList;
124   ParserParameter  _outParam;
125   
126   ParserDataStreamParameters _inDataStreamParamList;
127   ParserDataStreamParameter  _inDataStreamParam;
128   
129   ParserDataStreamParameters _outDataStreamParamList;
130   ParserDataStreamParameter  _outDataStreamParam;
131
132   ParserTypes& _typeMap;
133   TypeList& _typeList;
134
135   ParserSequences _sequenceMap;
136   ParserObjrefs _objrefMap;
137   ParserStructs _structMap;
138 };
139
140 #endif // SALOME_CATALOG_HANDLER_H