Unicorn XML Toolkit
Version 1.00.00

Namespace XsltObject
Class CObject

class CObject: public CInterface {
public:
    CObject();
    virtual ~CObject();
public:
    virtual XValue Get(const CString &strProperty) = 0;
    virtual void Put(
        const CString &strProperty,
        const XValue &pValue) = 0;
    virtual void Delete(const CString &strProperty) = 0;
    virtual XValue Call(
        const CString &strProperty,
        const CParamList ¶mList) = 0;
    virtual XObjectIterator CreateIterator(
        const CString &strProperty,
        const CParamList ¶mList) = 0;
    };

The abstract interface to objects.

The auxiliary data type CParamList is defined via typedef as the variable-sized array of XPath values ( XArray<XValue> ) and represents lists of parameters passed to object methods.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
CObjectIterator, Xpath::CValue
Constructor/Destructor Summary
CObject ();
����������Constructs the object.
~CObject ();
����������Destroys the object.

Function Summary
XValue Get (const CString &strProperty);
����������Gets the property value.
void Put (const CString &strProperty, const XValue &pValue);
����������Assigns the new value to the given property.
void Delete (const CString &strProperty);
����������Deletes the given property.
XValue Call (const CString &strProperty, const CParamList ¶mList);
����������Calls the given property of the object as a function.
XObjectIterator CreateIterator (const CString &strProperty, const CParamList ¶mList);
����������Creates the iterator associated with the given property of this object and the given parameter list.

Constructor/Destructor Detail

CObject

CObject();

Constructs the object.

~CObject

virtual ~CObject();

Destroys the object.

Function Detail

Get

virtual XValue Get(const CString &strProperty) = 0;

Gets the property value.

Parameters:
strProperty - the property name
Returns:
the value of the given property

Put

virtual void Put(
    const CString &strProperty,
    const XValue &pValue) = 0;

Assigns the new value to the given property.

Parameters:
strProperty - the property name
pValue - the value to assign

Delete

virtual void Delete(const CString &strProperty) = 0;

Deletes the given property.

Parameters:
strProperty - the property name

Call

virtual XValue Call(
    const CString &strProperty,
    const CParamList ¶mList) = 0;

Calls the given property of the object as a function.

Parameters:
strProperty - the property name
paramList - the parameter list
Returns:
the value obtained as the result of the function call

CreateIterator

virtual XObjectIterator CreateIterator(
    const CString &strProperty,
    const CParamList ¶mList) = 0;

Creates the iterator associated with the given property of this object and the given parameter list.

See the description of the CObjectIterator class for general information about iterators.

Parameters:
strProperty - the property name
paramList - the parameter list
Returns:
the newly created iterator

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

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