|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CValue: public CInterface { public: enum { typeNodeSet, typeBoolean, typeNumber, typeString, typeOther }; public: CValue(); virtual ~CValue(); public: virtual int GetType(); virtual XNodeSet GetNodeSet(); virtual bool GetBoolean(); virtual CNumber GetNumber(); virtual CString GetString(); };
The abstract interface to XPath values.
Every value object is assigned a certain type. Standard type codes are specified using the anonymous enumeration in the declaration of this class. Applications may define additional extension type codes.
CNodeSet, CNumber
Constructor/Destructor Summary | |
CValue
();
����������Constructs the value. |
|
~CValue
();
����������Destroys the value. |
Function Summary | |
int
|
GetType
();
����������Returns the type of this value. |
XNodeSet
|
GetNodeSet
();
����������Returns a node-set represented by this value. |
bool
|
GetBoolean
();
����������Returns a boolean represented by this value. |
CNumber
|
GetNumber
();
����������Returns a number represented by this value. |
CString
|
GetString
();
����������Returns a string represented by this value. |
Constructor/Destructor Detail |
CValue();
Constructs the value.
virtual ~CValue();
Destroys the value.
Function Detail |
virtual int GetType();
Returns the type of this value.
virtual XNodeSet GetNodeSet();
Returns a node-set represented by this value.
It is an error if this value does not represent a node-set
(that is, has the type other than
CValue::typeNodeSet
).
virtual 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
CValue::typeBoolean
).
virtual CNumber 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
CValue::typeNumber
).
virtual 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
CValue::typeString
).
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |