Version: 9.12.0
SALOME_ModuleCatalog_Handler.hxx
Go to the documentation of this file.
1 // Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007 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, or (at your option) any later version.
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 // SALOME ModuleCatalog : implementation of ModuleCatalog server which parsers xml description of modules
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 
35 
36 #include <string>
37 #include <stack>
38 #include <map>
39 
40 #include <libxml/parser.h>
41 
42 #ifdef WIN32
43 #pragma warning(disable:4251) // Warning DLL Interface ...
44 #endif
45 
47 {
48 public:
51 
54 
55  void ProcessXmlDocument(xmlDocPtr theDoc);
56 
57 private:
58 
59  const char *test_path_prefix_name ;
60  const char *test_computer_name ;
61  const char *test_computer_list ;
62  const char *test_path_prefix ;
63  const char *test_path_prefix_list;
64 
65  const char *test_component_name;
67  const char *test_component_type ;
68  const char *test_component_icon ;
73 
74  const char *test_interface_name;
75 
76  const char *test_service_name;
77  const char *test_defaultservice;
78  const char *test_typeofnode;
79 
80  const char *test_inParameter_type;
81  const char *test_inParameter_name;
82  const char *test_inParameter;
83  const char *test_inParameter_list;
84 
87  const char *test_outParameter;
89 
95 
101 
102  const char *test_service;
103  const char *test_service_list;
104  const char *test_interface_list;
105  const char *test_constraint;
106 
107  const char *test_component_list;
108  const char *test_component;
109 
111 
113 
116 
119 
122 
125 
128 
131 
134 
137 
141 };
142 
143 #endif // SALOME_CATALOG_HANDLER_H
#define MODULECATALOG_EXPORT
Definition: SALOME_ModuleCatalog.hxx:37
std::map< std::string, ParserType > ParserTypes
Definition: SALOME_ModuleCatalog_Parser.hxx:115
std::vector< ParserDataStreamParameter > ParserDataStreamParameters
Definition: SALOME_ModuleCatalog_Parser.hxx:62
std::vector< ParserService > ParserServices
Definition: SALOME_ModuleCatalog_Parser.hxx:79
std::vector< ParserPathPrefix > ParserPathPrefixes
Definition: SALOME_ModuleCatalog_Parser.hxx:43
std::map< std::string, ParserSequence > ParserSequences
Definition: SALOME_ModuleCatalog_Parser.hxx:123
std::map< std::string, ParserObjref > ParserObjrefs
Definition: SALOME_ModuleCatalog_Parser.hxx:129
std::map< std::string, ParserStruct > ParserStructs
Definition: SALOME_ModuleCatalog_Parser.hxx:135
std::vector< ParserType > TypeList
Definition: SALOME_ModuleCatalog_Parser.hxx:117
std::vector< ParserParameter > ParserParameters
Definition: SALOME_ModuleCatalog_Parser.hxx:61
std::vector< ParserComponent > ParserComponents
Definition: SALOME_ModuleCatalog_Parser.hxx:104
std::vector< ParserInterface > ParserInterfaces
Definition: SALOME_ModuleCatalog_Parser.hxx:87
Definition: SALOME_ModuleCatalog_Handler.hxx:47
ParserTypes & _typeMap
Definition: SALOME_ModuleCatalog_Handler.hxx:135
ParserParameters _inParamList
Definition: SALOME_ModuleCatalog_Handler.hxx:123
const char * test_component_impltype
Definition: SALOME_ModuleCatalog_Handler.hxx:69
ParserSequences _sequenceMap
Definition: SALOME_ModuleCatalog_Handler.hxx:138
const char * test_service
Definition: SALOME_ModuleCatalog_Handler.hxx:102
const char * test_inDataStreamParameter_name
Definition: SALOME_ModuleCatalog_Handler.hxx:91
const char * test_path_prefix
Definition: SALOME_ModuleCatalog_Handler.hxx:62
const char * test_outParameter
Definition: SALOME_ModuleCatalog_Handler.hxx:87
ParserComponents & _moduleList
Definition: SALOME_ModuleCatalog_Handler.hxx:115
const char * test_component
Definition: SALOME_ModuleCatalog_Handler.hxx:108
ParserParameter _inParam
Definition: SALOME_ModuleCatalog_Handler.hxx:124
const char * test_outParameter_name
Definition: SALOME_ModuleCatalog_Handler.hxx:86
const char * test_constraint
Definition: SALOME_ModuleCatalog_Handler.hxx:105
const char * test_inDataStreamParameter
Definition: SALOME_ModuleCatalog_Handler.hxx:93
TypeList & _typeList
Definition: SALOME_ModuleCatalog_Handler.hxx:136
const char * test_inDataStreamParameter_type
Definition: SALOME_ModuleCatalog_Handler.hxx:90
const char * test_path_prefix_list
Definition: SALOME_ModuleCatalog_Handler.hxx:63
const char * test_inParameter
Definition: SALOME_ModuleCatalog_Handler.hxx:82
ParserInterface _aInterface
Definition: SALOME_ModuleCatalog_Handler.hxx:118
ParserServices _serviceList
Definition: SALOME_ModuleCatalog_Handler.hxx:120
ParserObjrefs _objrefMap
Definition: SALOME_ModuleCatalog_Handler.hxx:139
const char * test_component_username
Definition: SALOME_ModuleCatalog_Handler.hxx:66
const char * test_component_type
Definition: SALOME_ModuleCatalog_Handler.hxx:67
const char * test_outParameter_type
Definition: SALOME_ModuleCatalog_Handler.hxx:85
ParserDataStreamParameters _outDataStreamParamList
Definition: SALOME_ModuleCatalog_Handler.hxx:132
const char * test_service_name
Definition: SALOME_ModuleCatalog_Handler.hxx:76
const char * test_component_name
Definition: SALOME_ModuleCatalog_Handler.hxx:65
const char * test_interface_list
Definition: SALOME_ModuleCatalog_Handler.hxx:104
const char * test_interface_name
Definition: SALOME_ModuleCatalog_Handler.hxx:74
const char * test_component_list
Definition: SALOME_ModuleCatalog_Handler.hxx:107
const char * test_computer_list
Definition: SALOME_ModuleCatalog_Handler.hxx:61
ParserComponent _aModule
Definition: SALOME_ModuleCatalog_Handler.hxx:112
const char * test_outDataStreamParameter_type
Definition: SALOME_ModuleCatalog_Handler.hxx:96
const char * test_component_implname
Definition: SALOME_ModuleCatalog_Handler.hxx:70
ParserService _aService
Definition: SALOME_ModuleCatalog_Handler.hxx:121
ParserParameters _outParamList
Definition: SALOME_ModuleCatalog_Handler.hxx:126
const char * test_inDataStreamParameter_list
Definition: SALOME_ModuleCatalog_Handler.hxx:94
ParserPathPrefixes & _pathList
Definition: SALOME_ModuleCatalog_Handler.hxx:114
const char * test_outDataStreamParameter_dependency
Definition: SALOME_ModuleCatalog_Handler.hxx:98
const char * test_outDataStreamParameter_name
Definition: SALOME_ModuleCatalog_Handler.hxx:97
ParserInterfaces _interfaceList
Definition: SALOME_ModuleCatalog_Handler.hxx:117
const char * test_inDataStreamParameter_dependency
Definition: SALOME_ModuleCatalog_Handler.hxx:92
const char * test_component_comment
Definition: SALOME_ModuleCatalog_Handler.hxx:72
const char * test_outParameter_list
Definition: SALOME_ModuleCatalog_Handler.hxx:88
const char * test_typeofnode
Definition: SALOME_ModuleCatalog_Handler.hxx:78
const char * test_service_list
Definition: SALOME_ModuleCatalog_Handler.hxx:103
const char * test_inParameter_type
Definition: SALOME_ModuleCatalog_Handler.hxx:80
const char * test_outDataStreamParameter_list
Definition: SALOME_ModuleCatalog_Handler.hxx:100
const char * test_defaultservice
Definition: SALOME_ModuleCatalog_Handler.hxx:77
const char * test_outDataStreamParameter
Definition: SALOME_ModuleCatalog_Handler.hxx:99
const char * test_inParameter_name
Definition: SALOME_ModuleCatalog_Handler.hxx:81
ParserDataStreamParameters _inDataStreamParamList
Definition: SALOME_ModuleCatalog_Handler.hxx:129
const char * test_computer_name
Definition: SALOME_ModuleCatalog_Handler.hxx:60
ParserParameter _outParam
Definition: SALOME_ModuleCatalog_Handler.hxx:127
const char * test_component_version
Definition: SALOME_ModuleCatalog_Handler.hxx:71
ParserStructs _structMap
Definition: SALOME_ModuleCatalog_Handler.hxx:140
const char * test_inParameter_list
Definition: SALOME_ModuleCatalog_Handler.hxx:83
ParserPathPrefix _pathPrefix
Definition: SALOME_ModuleCatalog_Handler.hxx:110
const char * test_path_prefix_name
Definition: SALOME_ModuleCatalog_Handler.hxx:59
const char * test_component_icon
Definition: SALOME_ModuleCatalog_Handler.hxx:68
ParserDataStreamParameter _inDataStreamParam
Definition: SALOME_ModuleCatalog_Handler.hxx:130
ParserDataStreamParameter _outDataStreamParam
Definition: SALOME_ModuleCatalog_Handler.hxx:133
Definition: SALOME_ModuleCatalog_Parser.hxx:90
Definition: SALOME_ModuleCatalog_Parser.hxx:55
Definition: SALOME_ModuleCatalog_Parser.hxx:82
Definition: SALOME_ModuleCatalog_Parser.hxx:48
Definition: SALOME_ModuleCatalog_Parser.hxx:38
Definition: SALOME_ModuleCatalog_Parser.hxx:65