Unicorn XML Toolkit
Version 1.00.00

Namespace Xpath
Class CValue

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.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
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

CValue();

Constructs the value.

~CValue

virtual ~CValue();

Destroys the value.

Function Detail

GetType

virtual int GetType();

Returns the type of this value.

Returns:
the type of this value

GetNodeSet

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

Returns:
the node-set represented by this value

GetBoolean

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

Returns:
the boolean represented by this value

GetNumber

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

Returns:
the number represented by this value

GetString

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

Returns:
the string represented by this value

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

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