XPath result object. More...

#include <xpath_object.h>

Public Types

enum  Type {
  type_null, type_node_set, type_boolean, type_number,
  type_string
}
 

Public Member Functions

 XPathObject ()
 
 XPathObject (bool value)
 
 XPathObject (double value)
 
 XPathObject (size_t value)
 
 XPathObject (const std::string &value)
 
 XPathObject (const std::vector< DomNode > &value)
 
bool get_boolean () const
 Get Boolean. More...
 
std::vector< DomNodeget_node_set () const
 
double get_number () const
 Get Number. More...
 
std::string get_string () const
 Get String. More...
 
Type get_type () const
 Get Type. More...
 
bool is_null () const
 Is Null. More...
 
void set_boolean (bool value)
 Set boolean. More...
 
void set_node_set (const std::vector< DomNode > &node_set)
 Set node set. More...
 
void set_null ()
 Set null. More...
 
void set_number (double value)
 Set number. More...
 
void set_string (const std::string &str)
 Set string. More...
 

Detailed Description

XPath result object.

Constructor & Destructor Documentation

clan::XPathObject::XPathObject ( )
clan::XPathObject::XPathObject ( bool  value)
clan::XPathObject::XPathObject ( double  value)
clan::XPathObject::XPathObject ( size_t  value)
clan::XPathObject::XPathObject ( const std::string value)
clan::XPathObject::XPathObject ( const std::vector< DomNode > &  value)

Member Function Documentation

bool clan::XPathObject::get_boolean ( ) const

Get Boolean.

Returns
boolean
std::vector<DomNode> clan::XPathObject::get_node_set ( ) const
double clan::XPathObject::get_number ( ) const

Get Number.

Returns
number
std::string clan::XPathObject::get_string ( ) const

Get String.

Returns
string
Type clan::XPathObject::get_type ( ) const

Get Type.

Returns
type
bool clan::XPathObject::is_null ( ) const

Is Null.

Returns
true = null
void clan::XPathObject::set_boolean ( bool  value)

Set boolean.

Parameters
value= bool
void clan::XPathObject::set_node_set ( const std::vector< DomNode > &  node_set)

Set node set.

Parameters
vector= Dom Node
void clan::XPathObject::set_null ( )

Set null.

void clan::XPathObject::set_number ( double  value)

Set number.

Parameters
value= value
void clan::XPathObject::set_string ( const std::string str)

Set string.

Parameters
str= String Ref

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