|
Unicorn XML Toolkit Version 1.50.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CXpathValue { public: enum { typeNodeSet = Xpath::CValue::typeNodeSet, typeBoolean = Xpath::CValue::typeBoolean, typeNumber = Xpath::CValue::typeNumber, typeString = Xpath::CValue::typeString }; public: CXpathValue(Xpath::CValue *pValue); ~CXpathValue(); public: int GetType(); bool GetBoolean(); double GetNumber(); CString GetString(); public: Xpath::CValue *GetValue(); };
Encapsulates XPath values.
Objects of this class are usually created as the result
of evaluating XPath expressions (
CXpathExpr
).
Every value object is assigned a certain type. Standard XPath type codes are specified using the anonymous enumeration in the declaration of this class.
Constructor/Destructor Summary | |
CXpathValue
(Xpath::CValue *pValue);
����������Constructs the XPath value. |
|
~CXpathValue
();
����������Destroys the XPath value. |
Function Summary | |
int
|
GetType
();
����������Returns the type of this value. |
bool
|
GetBoolean
();
����������Returns a boolean represented by this value. |
double
|
GetNumber
();
����������Returns a number represented by this value. |
CString
|
GetString
();
����������Returns a string represented by this value. |
Xpath::CValue�*
|
GetValue
();
����������Returns the internal representation of XPath value encapsulated in this object. |
Constructor/Destructor Detail |
CXpathValue(Xpath::CValue *pValue);
Constructs the XPath value.
This constructor is intended mainly for the toolkit internal use.
pValue
- the internal representation of
the XPath value to be encapsulated in this object~CXpathValue();
Destroys the XPath value.
Function Detail |
int GetType();
Returns the type of this value.
bool GetBoolean();
Returns a boolean represented by this value.
It is an error if this value does not represent a boolean
(that is, has the type other than
CXpathValue::typeBoolean
).
double GetNumber();
Returns a number represented by this value.
It is an error if this value does not represent a number
(that is, has the type other than
CXpathValue::typeNumber
).
CString GetString();
Returns a string represented by this value.
It is an error if this value does not represent a string
(that is, has the type other than
CXpathValue::typeString
).
Xpath::CValue *GetValue();
Returns the internal representation of XPath value encapsulated in this object.
This method is intended mainly for the toolkit internal use.
|
Unicorn XML Toolkit Version 1.50.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |