LibOFX: nodeparser.h Source File

LibOFX

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

nodeparser.h
Go to the documentation of this file.
1 /***************************************************************************
2 nodeparser.cpp
3 -------------------
4 copyright : (C) 2005 by Ace Jones
5 email : acejones@users.sourceforge.net
6 ***************************************************************************/
11 /***************************************************************************
12 * *
13 * This program is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or *
16 * (at your option) any later version. *
17 * *
18 ***************************************************************************/
19
20 #ifndef NODEPARSER_H
21 #define NODEPARSER_H
22
23 #include <string>
24 #include <vector>
25 #include <libxml++/libxml++.h>
26
27 class NodeParser: public xmlpp::Node::NodeList
28 {
29 public:
30 NodeParser(void) {}
31 NodeParser(const xmlpp::Node::NodeList&);
32 NodeParser(const xmlpp::Node*);
33 NodeParser(const xmlpp::DomParser&);
34
35 NodeParser Path(const std::string& path) const;
36 NodeParser Select(const std::string& key, const std::string& value) const;
37 std::vector<std::string> Text(void) const;
38
39 protected:
40 static NodeParser Path(const xmlpp::Node* node,const std::string& path);
41 };
42
43
44 #endif // NODEPARSER_H
NodeParser
Definition: nodeparser.h:27