struct CCL::ICodeResourceLoader

Overview

#include <icoderesource.h>

struct ICodeResourceLoader: public CCL::IUnknown
{
    // methods

    virtual StringID CCL_API getType () const = 0;
    virtual tbool CCL_API isCodeResource (UrlRef path) = 0;

    virtual tresult CCL_API loadCodeResource (
        ICodeResource*& codeResource,
        UrlRef path
    ) = 0;

    virtual tbool CCL_API isKnownLocation (UrlRef path) = 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

Methods

virtual StringID CCL_API getType () const = 0

Get type of code resources.

virtual tbool CCL_API isCodeResource (UrlRef path) = 0

Check if given resource is compatible.

virtual tresult CCL_API loadCodeResource (
    ICodeResource*& codeResource,
    UrlRef path
) = 0

Load code resource into memory.

virtual tbool CCL_API isKnownLocation (UrlRef path) = 0

Check if given path is inside a known location.