Version: 9.16.0
SALOME_ModuleCatalog_Parser.hxx
Go to the documentation of this file.
1// Copyright (C) 2007-2026 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_Parser.hxx
25// Author : Estelle Deville
26// Module : SALOME
27// $Header$
28//
29#ifndef SALOME_CATALOG_PARSER_H
30#define SALOME_CATALOG_PARSER_H
31
32#include <string>
33#include <vector>
34#include <map>
35
36// Type Definitions
38{
39 std::string path;
40 std::vector<std::string> listOfComputer ;
41};
42
43typedef std::vector<ParserPathPrefix> ParserPathPrefixes ;
44
46
48{
49 std::string type;
50 std::string name;
51} ;
52
53
55{
56 std::string type;
57 std::string name;
58 std::string dependency;
59} ;
60
61typedef std::vector<ParserParameter> ParserParameters;
62typedef std::vector<ParserDataStreamParameter> ParserDataStreamParameters;
63
65{
67 typeOfNode = 1;
68 byDefault = 1;
69 }
70 std::string name;
77} ;
78
79typedef std::vector<ParserService> ParserServices ;
80
82{
83 std::string name ;
85} ;
86
87typedef std::vector<ParserInterface> ParserInterfaces;
88
90{
91 std::string name;
92 std::string username;
94 std::string icon;
95 std::string constraint;
98 std::string implementationType;
99 std::string implementationName;
100 std::string version;
101 std::string comment;
102};
103
104typedef std::vector<ParserComponent> ParserComponents ;
105
107{
108 std::string name;
109 std::string kind;
110 std::string id;
111 std::string content;
112 std::vector<std::string> bases;
113 std::vector< std::pair<std::string,std::string> > members;
114};
115typedef std::map<std::string,ParserType> ParserTypes ;
116typedef std::map<std::string,ParserType&> RefTypes ;
117typedef std::vector<ParserType> TypeList ;
118
120{
121 ParserSequence(){kind="sequence";}
122};
123typedef std::map<std::string,ParserSequence> ParserSequences ;
124
126{
127 ParserObjref(){kind="objref";}
128};
129typedef std::map<std::string,ParserObjref> ParserObjrefs ;
130
132{
133 ParserStruct(){kind="struct";}
134};
135typedef std::map<std::string,ParserStruct> ParserStructs ;
136
137#endif // SALOME_CATALOG_PARSER_H
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::map< std::string, ParserType & > RefTypes
Definition: SALOME_ModuleCatalog_Parser.hxx:116
std::vector< ParserInterface > ParserInterfaces
Definition: SALOME_ModuleCatalog_Parser.hxx:87
ParserComponentType
Definition: SALOME_ModuleCatalog_Parser.hxx:45
@ MESH
Definition: SALOME_ModuleCatalog_Parser.hxx:45
@ SUPERV
Definition: SALOME_ModuleCatalog_Parser.hxx:45
@ VISU
Definition: SALOME_ModuleCatalog_Parser.hxx:45
@ Med
Definition: SALOME_ModuleCatalog_Parser.hxx:45
@ DATA
Definition: SALOME_ModuleCatalog_Parser.hxx:45
@ GEOM
Definition: SALOME_ModuleCatalog_Parser.hxx:45
@ OTHER
Definition: SALOME_ModuleCatalog_Parser.hxx:45
@ SOLVER
Definition: SALOME_ModuleCatalog_Parser.hxx:45
Definition: SALOME_ModuleCatalog_Parser.hxx:90
ParserComponentType type
Definition: SALOME_ModuleCatalog_Parser.hxx:93
std::string name
Definition: SALOME_ModuleCatalog_Parser.hxx:91
std::string implementationName
Definition: SALOME_ModuleCatalog_Parser.hxx:99
ParserPathPrefixes prefixes
Definition: SALOME_ModuleCatalog_Parser.hxx:97
std::string username
Definition: SALOME_ModuleCatalog_Parser.hxx:92
ParserInterfaces interfaces
Definition: SALOME_ModuleCatalog_Parser.hxx:96
std::string constraint
Definition: SALOME_ModuleCatalog_Parser.hxx:95
std::string version
Definition: SALOME_ModuleCatalog_Parser.hxx:100
std::string implementationType
Definition: SALOME_ModuleCatalog_Parser.hxx:98
std::string icon
Definition: SALOME_ModuleCatalog_Parser.hxx:94
std::string comment
Definition: SALOME_ModuleCatalog_Parser.hxx:101
Definition: SALOME_ModuleCatalog_Parser.hxx:55
std::string dependency
Definition: SALOME_ModuleCatalog_Parser.hxx:58
std::string name
Definition: SALOME_ModuleCatalog_Parser.hxx:57
std::string type
Definition: SALOME_ModuleCatalog_Parser.hxx:56
Definition: SALOME_ModuleCatalog_Parser.hxx:82
ParserServices services
Definition: SALOME_ModuleCatalog_Parser.hxx:84
std::string name
Definition: SALOME_ModuleCatalog_Parser.hxx:83
Definition: SALOME_ModuleCatalog_Parser.hxx:126
ParserObjref()
Definition: SALOME_ModuleCatalog_Parser.hxx:127
Definition: SALOME_ModuleCatalog_Parser.hxx:48
std::string type
Definition: SALOME_ModuleCatalog_Parser.hxx:49
std::string name
Definition: SALOME_ModuleCatalog_Parser.hxx:50
Definition: SALOME_ModuleCatalog_Parser.hxx:38
std::vector< std::string > listOfComputer
Definition: SALOME_ModuleCatalog_Parser.hxx:40
std::string path
Definition: SALOME_ModuleCatalog_Parser.hxx:39
Definition: SALOME_ModuleCatalog_Parser.hxx:120
ParserSequence()
Definition: SALOME_ModuleCatalog_Parser.hxx:121
Definition: SALOME_ModuleCatalog_Parser.hxx:65
ParserService()
Definition: SALOME_ModuleCatalog_Parser.hxx:66
bool typeOfNode
Definition: SALOME_ModuleCatalog_Parser.hxx:76
bool byDefault
Definition: SALOME_ModuleCatalog_Parser.hxx:75
std::string name
Definition: SALOME_ModuleCatalog_Parser.hxx:70
ParserDataStreamParameters outDataStreamParameters
Definition: SALOME_ModuleCatalog_Parser.hxx:74
ParserParameters outParameters
Definition: SALOME_ModuleCatalog_Parser.hxx:72
ParserDataStreamParameters inDataStreamParameters
Definition: SALOME_ModuleCatalog_Parser.hxx:73
ParserParameters inParameters
Definition: SALOME_ModuleCatalog_Parser.hxx:71
Definition: SALOME_ModuleCatalog_Parser.hxx:132
ParserStruct()
Definition: SALOME_ModuleCatalog_Parser.hxx:133
Definition: SALOME_ModuleCatalog_Parser.hxx:107
std::string name
Definition: SALOME_ModuleCatalog_Parser.hxx:108
std::string id
Definition: SALOME_ModuleCatalog_Parser.hxx:110
std::vector< std::pair< std::string, std::string > > members
Definition: SALOME_ModuleCatalog_Parser.hxx:113
std::string content
Definition: SALOME_ModuleCatalog_Parser.hxx:111
std::vector< std::string > bases
Definition: SALOME_ModuleCatalog_Parser.hxx:112
std::string kind
Definition: SALOME_ModuleCatalog_Parser.hxx:109