HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_XMLDomParser.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: UT_XMLDomParser.h ( Library, C++)
7  *
8  * COMMENTS:
9  * The DOM parser uses the libxml2 API documented at:
10  * http://xmlsoft.org/html/libxml-parser.html
11  * http://xmlsoft.org/html/libxml-tree.html
12  *
13  */
14 
15 #ifndef __UT_XMLDomParser__
16 #define __UT_XMLDomParser__
17 
18 #include "UT_API.h"
19 #include "UT_XMLParser.h"
20 
21 class UT_XMLNode;
22 
24 {
25 public:
26  /// Standard constructor.
28 
29  /// Standard destructor.
30  ~UT_XMLDomParser() override;
31 
32  /// Return the root node of the document that was parsed.
33  /// Return NULL if the parse failed and no document was created
34  /// or if no parse has taken place.
35  UT_XMLNode *getRootNode() const;
36 
37 protected:
38  /// Parse XML using the current context.
39  /// Return true on a successful parse. Return false otherwise.
40  bool parseContextSubclass() override;
41 
42 private:
43  void clean();
44  UT_XMLNode *myRootNode;
45 };
46 
47 #endif
48 
#define UT_API
Definition: UT_API.h:14
virtual bool parseContextSubclass()=0