2 #ifndef _CONTAINERPARSER_HXX_
3 #define _CONTAINERPARSER_HXX_
5 #include "parserBase.hxx"
11 /*! \brief Class for machine parser.
13 * Class used to parse computer adress on which container must be started
17 <xsd:complexType name="MachineType">
18 <xsd:attribute name="name" type="xsd:string" use="required"/>
22 struct machinetypeParser: parser
24 static machinetypeParser machineParser;
25 virtual void buildAttr(const XML_Char** attr);
27 virtual void name(const std::string& name);
32 /*! \brief Class for container parser
34 * Class used to parse container description
38 <xsd:complexType name="ContainerType">
40 <xsd:element name="machine" type="MachineType" minOccurs="0" maxOccurs="unbounded"/>
41 <xsd:element name="property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
43 <xsd:attribute name="name" type="xsd:string" use="required"/>
47 struct containertypeParser: parser
49 static containertypeParser containerParser;
50 virtual void buildAttr(const XML_Char** attr);
51 virtual void onStart(const XML_Char* el, const XML_Char** attr);
52 virtual void onEnd(const char *el,parser* child);
54 virtual void name(const std::string& name);
55 virtual void machine_(const machine& m);
56 virtual void property (const myprop& prop);
58 mycontainer _container;
61 /*! \brief Class for loading parser
63 * Class used to parse service node loading information
67 <xsd:complexType name="LoadType">
68 <xsd:attribute name="container" type="xsd:string" use="required"/>
72 struct loadtypeParser: parser
74 static loadtypeParser loadParser;
75 virtual void buildAttr(const XML_Char** attr);
77 virtual void container(const std::string& name);