1 // Copyright (C) 2006-2012 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef _CONTAINERPARSER_HXX_
21 #define _CONTAINERPARSER_HXX_
23 #include "parserBase.hxx"
24 #include "factory.hxx"
29 /*! \brief Class for machine parser.
31 * Class used to parse computer adress on which container must be started
35 <xsd:complexType name="MachineType">
36 <xsd:attribute name="name" type="xsd:string" use="required"/>
40 struct machinetypeParser: parser
42 static machinetypeParser machineParser;
43 virtual void buildAttr(const XML_Char** attr);
45 virtual void name(const std::string& name);
50 /*! \brief Class for container parser
52 * Class used to parse container description
56 <xsd:complexType name="ContainerType">
58 <xsd:element name="machine" type="MachineType" minOccurs="0" maxOccurs="unbounded"/>
59 <xsd:element name="property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
61 <xsd:attribute name="name" type="xsd:string" use="required"/>
65 struct containertypeParser: parser
67 static containertypeParser containerParser;
68 virtual void buildAttr(const XML_Char** attr);
69 virtual void onStart(const XML_Char* el, const XML_Char** attr);
70 virtual void onEnd(const char *el,parser* child);
72 virtual void name(const std::string& name);
73 virtual void machine_(const machine& m);
74 virtual void property (const myprop& prop);
76 mycontainer _container;
79 /*! \brief Class for loading parser
81 * Class used to parse service node loading information
85 <xsd:complexType name="LoadType">
86 <xsd:attribute name="container" type="xsd:string" use="required"/>
90 struct loadtypeParser: parser
92 static loadtypeParser loadParser;
93 virtual void buildAttr(const XML_Char** attr);
95 virtual void container(const std::string& name);