template class CCL::CommandDelegate

#include <commanddispatch.h>

template <class T>
class CommandDelegate:
    public CCL::Unknown,
    public CCL::ICommandHandler
{
public:
    // typedefs

    typedef bool (T::* CommandDelegateMethod)(
        CmdArgs,
        VariantRef data
        );

    // fields

     ICommandHandler;

    // construction

    CommandDelegate (T* handler, CommandDelegateMethod method, VariantRef _data);

    // methods

    virtual tbool CCL_API checkCommandCategory (CStringRef category) const;
    virtual tbool CCL_API interpretCommand (const CommandMsg& msg);

    static AutoPtr <ICommandHandler> make (
        T* handler,
        CommandDelegateMethod method,
        VariantRef data
    );
};

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;
    Unknown& operator = (const Unknown&);
    unsigned int getRetainCount () const;
    virtual tbool CCL_API checkCommandCategory (CStringRef category) const = 0;
    virtual tbool CCL_API interpretCommand (const CommandMsg& msg) = 0;