ui-gxmlcpp  1.4.4
Public Types | Public Member Functions | Protected Member Functions | Friends
UI::GXML::XPathObject Class Reference

XPath object holder class. More...

#include <XPathObject.hpp>

Inheritance diagram for UI::GXML::XPathObject:
Inheritance graph
Collaboration diagram for UI::GXML::XPathObject:
Collaboration graph

Public Types

enum  ErrorCode { EvalError_, NotAString_, NotABool_, NotAFloat_ }
 Error codes for exceptions.
 
typedef CodeException< ErrorCodeException
 Exceptions for this class.
 
typedef xmlXPathObjectType Type
 Abstract from libxml2 type.
 

Public Member Functions

 XPathObject (XPathContext const &context, std::string const &xpath)
 Public constructor.
 
Type getType () const
 Get type of this xpath object.
 
Get value of this xpath object.

If this object's type is not of according type, these methods will throw an appr. exception.

std::string getString () const
 
double getNumber () const
 
bool getBoolean () const
 

Protected Member Functions

 XPathObject (xmlXPathContextPtr const context, std::string const &xpath)
 Internal constructor.
 

Friends

class XMLTree
 
class Tree
 

Detailed Description

XPath object holder class.

Friends And Related Function Documentation

◆ XMLTree

friend class XMLTree
friend
Todo:
Compat.

The documentation for this class was generated from the following files: