1 // File: SALOME_DataTypeCatalog_Handler.hxx
2 // Created: Mon Aug 08 2001
3 // Author: Estelle Deville
5 // Copyright : CEA/DEN/DMSS/LGLS
8 #ifndef SALOME_DATA_CATALOG_HANDLER_H
9 #define SALOME_DATA_CATALOG_HANDLER_H
11 #include "utilities.h"
12 #include "SALOME_DataTypeCatalog_Parser.hxx"
17 class SALOME_DataTypeCatalog_Handler : public QXmlDefaultHandler
20 //! standard constructor
21 SALOME_DataTypeCatalog_Handler();
23 //! standard destructor
24 virtual ~SALOME_DataTypeCatalog_Handler();
27 //! method to overload handler function startDocument
28 /*! Is called before a xml file is parsed
29 \return true if no error was detected
31 virtual bool startDocument();
34 //! method to overload handler function startElement
36 \param Qstring argument by value
37 \param Qstring argument by value
38 \param Qstring argument by value
39 \param QXmlAttributes argument by value
40 \return true if no error was detected
42 virtual bool startElement(const QString&, const QString &,
43 const QString& qName, const QXmlAttributes& atts);
45 //! method to overload handler function endElement
47 \param Qstring argument by value
48 \param Qstring argument by value
49 \param Qstring argument by value
50 \return true if no error was detected
53 virtual bool endElement(const QString&, const QString &,
54 const QString& qName);
57 //! method to overload handler function characters
59 \param Qstring argument by value
60 \return true if no error was detected
62 virtual bool characters(const QString& chars);
64 //! method to overload handler function endDocument
65 /*! Is called at the end of the parsing
66 \return true if no error was detected
68 virtual bool endDocument();
70 //! method to overload handler function errorProtocol
72 \return the error message
74 virtual QString errorProtocol();
76 //! method to overload handler function fatalError
78 \param QXmlParseExecption argument by value
79 \return true if no error was detected
81 virtual bool fatalError(const QXmlParseException& exception);
88 const char* test_data_type_name ;
89 const char* test_data_type_interf_read ;
90 const char* test_data_type_interf_write ;
91 const char* test_data_type_parent_name ;
92 const char* test_data_type_parents ;
93 const char* test_data_type;
95 ParserDataType _a_data_type;
97 ListOfParserDataTypeName _a_data_parents_list ;
100 #endif // SALOME_DATA_CATALOG_HANDLER_H