Unicorn XML Toolkit
Version 1.00.00

Namespace EcmaScript
Class CValue

class CValue: public CInterface {
public:
    enum {
        typeUndefined,
        typeNull,
        typeBoolean,
        typeString,
        typeNumber,
        typeObject,
        typeReference,
        typeList,
        typeCompletion
        };
public:
    CValue();
    virtual ~CValue();
public:
    virtual int GetType();
    virtual bool GetBoolean();
    virtual CString GetString();
    virtual CNumber GetNumber();
    virtual XObject GetObject();
    virtual CReference *GetReference();
    virtual CList *GetList();
    virtual CCompletion *GetCompletion();
    };

The abstract interface to ECMAScript values.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
CNumber, CObject, CReference, CList, CCompletion
Constructor/Destructor Summary
CValue ();
����������Constructs the value.
~CValue ();
����������Destroys the value.

Function Summary
int GetType ();
����������Returns type of this value.
bool GetBoolean ();
����������Returns a boolean associated with this value.
CString GetString ();
����������Returns a string associated with this value.
CNumber GetNumber ();
����������Returns a number associated with the value.
XObject GetObject ();
����������Returns an object associated with this value.
CReference�* GetReference ();
����������Returns a reference associated with this value.
CList�* GetList ();
����������Returns a list associated with this value.
CCompletion�* GetCompletion ();
����������Returns a completion associated with this value.

Constructor/Destructor Detail

CValue

CValue();

Constructs the value.

~CValue

virtual ~CValue();

Destroys the value.

Function Detail

GetType

virtual int GetType();

Returns type of this value.

Returns:
the type of this value

GetBoolean

virtual bool GetBoolean();

Returns a boolean associated with this value.

This value must be of a boolean type.

Returns:
the boolean associated with this value

GetString

virtual CString GetString();

Returns a string associated with this value.

This value must be of a string type.

Returns:
the string associated with this value

GetNumber

virtual CNumber GetNumber();

Returns a number associated with the value.

This value must be of a number type.

Returns:
the number associated with this value

GetObject

virtual XObject GetObject();

Returns an object associated with this value.

This value must be of an object type.

Returns:
the object associated with this value

GetReference

virtual CReference *GetReference();

Returns a reference associated with this value.

This value must be of a reference type.

Returns:
the reference associated with this value

GetList

virtual CList *GetList();

Returns a list associated with this value.

This value must be of a list type.

Returns:
the list associated with this value

GetCompletion

virtual CCompletion *GetCompletion();

Returns a completion associated with this value.

This value must be of a completion type.

Returns:
the completion associated with 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.