struct CCL::IObject

Overview

Basic object interface. More…

#include <iobject.h>

struct IObject: public CCL::IUnknown
{
    // typedefs

    typedef CStringRef MemberID;

    // methods

    virtual const ITypeInfo&CCL_API getTypeInfo () const = 0;
    virtual tbool CCL_API getProperty (Variant& var, MemberID propertyId) const = 0;
    virtual tbool CCL_API setProperty (MemberID propertyId, const Variant& var) = 0;
    virtual tbool CCL_API getPropertyNames (IPropertyCollector& collector) const = 0;
    virtual tbool CCL_API invokeMethod (Variant& returnValue, MessageRef msg) = 0;
};

Inherited Members

public:
    // methods

    virtual tresult CCL_API queryInterface (UIDRef iid, void** ptr) = 0;
    virtual unsigned int CCL_API retain () = 0;
    virtual unsigned int CCL_API release () = 0;

Detailed Documentation

Basic object interface.

Typedefs

typedef CStringRef MemberID

Property and method identifier.

Methods

virtual const ITypeInfo&CCL_API getTypeInfo () const = 0

Get type information.

virtual tbool CCL_API getProperty (Variant& var, MemberID propertyId) const = 0

Get property value by name.

virtual tbool CCL_API setProperty (MemberID propertyId, const Variant& var) = 0

Set property value by name.

virtual tbool CCL_API getPropertyNames (IPropertyCollector& collector) const = 0

Get all property names of this object.

virtual tbool CCL_API invokeMethod (Variant& returnValue, MessageRef msg) = 0

Call method.