1 // SALOME RessourcesCatalog : implementation of catalog resources parsing (SALOME_ModuleCatalog.idl)
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : SALOME_RessourcesCatalog_Handler.hxx
25 // Author : Estelle Deville
29 #ifndef SALOME_RESSOURCES_CATALOG_HANDLER
30 #define SALOME_RESSOURCES_CATALOG_HANDLER
32 #include "SALOME_RessourcesCatalog_Parser.hxx"
38 class SALOME_RessourcesCatalog_Handler : public QXmlDefaultHandler
41 //! standard constructor
42 SALOME_RessourcesCatalog_Handler();
44 //! standard destructor
45 virtual ~SALOME_RessourcesCatalog_Handler();
47 //! method to overload handler function startDocument
48 /*! is called before a xml file is parsed
49 \return true if no error was detected
51 virtual bool startDocument();
53 //! method to overload handler function startElement
55 \param QString argument by value
56 \param QString argument by value
57 \param QString qName argument by value
58 \param QXmlAttributes atts argument by value
59 \return true if no error was detected
61 virtual bool startElement(const QString& , const QString& ,
62 const QString& qName, const QXmlAttributes& atts);
64 //! method to overload handler function endElement
66 \param QString argument by value
67 \param QString argument by value
68 \param QString qName argument by value
69 \return true if no error was detected
71 virtual bool endElement(const QString&, const QString&,
72 const QString& qName);
74 //! method to overload handler function characters
76 \param QString chars argument by value
77 \return true if no error was detected
79 virtual bool characters(const QString& chars);
81 //! method to overload handler function endDocument
82 /*! is called at the end of the parsing
83 \return true if no error was detected
85 virtual bool endDocument();
87 //! method to overload handler function errorProtocol
89 \return the error message
91 virtual QString errorProtocol();
93 //! method to overload handler function fatalError
95 \param QXmlParseException exception argument by value
96 \return true if no error was detected
98 virtual bool fatalError(const QXmlParseException& exception);
106 const char* test_computer;
107 const char* test_computer_name;
108 const char* test_computer_OS;
109 const char* test_computer_OS_version;
110 const char* test_proc;
111 const char* test_proc_number;
112 const char* test_proc_model;
113 const char* test_proc_cpu;
114 const char* test_proc_cache;
115 const char* test_proc_list;
116 const char* test_container_type;
117 const char* test_container_type_list;
119 Parserressources _a_ressource;
121 ListOfParserProc _procs_list;
123 ListOfParserContainerType _container_list;
127 #endif // SALOME_RESSOURCES_CATALOG_HANDLER