Unicorn XML Toolkit
Version 1.50.00

Namespace Xml
Class CXpathValue

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.

Since:
1.50.00
Version:
1.50.00
Author:
Alexey Gokhberg
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

CXpathValue(Xpath::CValue *pValue);

Constructs the XPath value.

This constructor is intended mainly for the toolkit internal use.

Parameters:
pValue - the internal representation of the XPath value to be encapsulated in this object

~CXpathValue

~CXpathValue();

Destroys the XPath value.

Function Detail

GetType

int GetType();

Returns the type of this value.

Returns:
the type of this value

GetBoolean

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 ).

Returns:
the boolean represented by this value

GetNumber

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 ).

Returns:
the number represented by this value

GetString

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 ).

Returns:
the string represented by this value

GetValue

Xpath::CValue *GetValue();

Returns the internal representation of XPath value encapsulated in this object.

This method is intended mainly for the toolkit internal use.

Returns:
the internal representation of XPath value encapsulated in this object

Unicorn XML Toolkit
Version 1.50.00


This document was created using Unicorn DOC++.

Copyright 1999-2001 Unicorn Enterprises SA.
All Rights Reserved.