XPathContext.hpp
Go to the documentation of this file.
#ifndef UI_GXML_XPATHCONTEXT_HPP
#define UI_GXML_XPATHCONTEXT_HPP
// STDC++
#include <string>
// C libraries
#include <libxml/tree.h>
#include <libxml/xpath.h>
// C++ libraries
#include <ui-gxmlcpp/Exception.hpp>
#include <ui-gxmlcpp/Util.hpp>
namespace UI {
namespace GXML {
class Tree;
class XPathContext: private UI::Util::auto_base<xmlXPathContext>
{
friend class Tree;
friend class XPathObject;
// Compatibility
friend class XMLTree;
friend class XMLDump;
friend class XMLNodeSet;
private:
static xmlXPathContext * create(xmlDoc * doc, xmlNode * node);
public:
enum ErrorCode
{
Create_ // Could not create (XPath) context for Tree
};
typedef CodeException<ErrorCode> Exception;
//protected:
XPathContext(xmlDoc * doc, xmlNode * node=0);
public:
XPathContext(Tree const & tree, xmlNode * node=0);
~XPathContext();
void registerNamespace(std::string const & prefix, std::string const & uri);
};
}}
#endif
Exception.hpp
Util.hpp
UI::GXML::CodeException
Adding code facility to Exception.
Definition Exception.hpp:35
UI::GXML::Tree
XML tree.
Definition Tree.hpp:31
UI::GXML::XPathContext
XPath context holder class.
Definition XPathContext.hpp:35
UI::GXML::XPathContext::registerNamespace
void registerNamespace(std::string const &prefix, std::string const &uri)
Register a new namespace prefix for this context.
Definition XPathContext.cpp:60
UI::GXML::XPathContext::Exception
CodeException< ErrorCode > Exception
Exceptions for this class.
Definition XPathContext.hpp:55
UI::GXML::XPathContext::ErrorCode
ErrorCode
Error codes for exceptions.
Definition XPathContext.hpp:51
UI::GXML::XPathObject
XPath object holder class.
Definition XPathObject.hpp:29
UI
Namespace for all Schlund+Partner Code.
Definition Buffer.cpp:30