1 //File SALOME_RessourcesCatalog_Handler.hxx
2 //Created: Fri Sept 07 2001
3 //Author: Estelle Deville
5 //Copyright: CEA/DEN/DM2S/LGLS
8 #ifndef SALOME_RESSOURCES_CATALOG_HANDLER
9 #define SALOME_RESSOURCES_CATALOG_HANDLER
11 #include "utilities.h"
12 #include "SALOME_RessourcesCatalog_Parser.hxx"
17 class SALOME_RessourcesCatalog_Handler : public QXmlDefaultHandler
20 //! standard constructor
21 SALOME_RessourcesCatalog_Handler();
23 //! standard destructor
24 virtual ~SALOME_RessourcesCatalog_Handler();
26 //! method to overload handler function startDocument
27 /*! is called before a xml file is parsed
28 \return true if no error was detected
30 virtual bool startDocument();
32 //! method to overload handler function startElement
34 \param QString argument by value
35 \param QString argument by value
36 \param QString qName argument by value
37 \param QXmlAttributes atts argument by value
38 \return true if no error was detected
40 virtual bool startElement(const QString& , const QString& ,
41 const QString& qName, const QXmlAttributes& atts);
43 //! method to overload handler function endElement
45 \param QString argument by value
46 \param QString argument by value
47 \param QString qName argument by value
48 \return true if no error was detected
50 virtual bool endElement(const QString&, const QString&,
51 const QString& qName);
53 //! method to overload handler function characters
55 \param QString chars argument by value
56 \return true if no error was detected
58 virtual bool characters(const QString& chars);
60 //! method to overload handler function endDocument
61 /*! is called at the end of the parsing
62 \return true if no error was detected
64 virtual bool endDocument();
66 //! method to overload handler function errorProtocol
68 \return the error message
70 virtual QString errorProtocol();
72 //! method to overload handler function fatalError
74 \param QXmlParseException exception argument by value
75 \return true if no error was detected
77 virtual bool fatalError(const QXmlParseException& exception);
85 const char* test_computer;
86 const char* test_computer_name;
87 const char* test_computer_OS;
88 const char* test_computer_OS_version;
89 const char* test_proc;
90 const char* test_proc_number;
91 const char* test_proc_model;
92 const char* test_proc_cpu;
93 const char* test_proc_cache;
94 const char* test_proc_list;
95 const char* test_container_type;
96 const char* test_container_type_list;
98 Parserressources _a_ressource;
100 ListOfParserProc _procs_list;
102 ListOfParserContainerType _container_list;
106 #endif // SALOME_RESSOURCES_CATALOG_HANDLER