struct CCL::IStorageHandler

Overview

Handler for saving/loading multiple objects to/from persistent storage. More…

#include <istorage.h>

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

    virtual tbool CCL_API saveContent (
        IFileSystem& fileSystem,
        VariantRef data,
        IProgressNotify* progress = nullptr
    ) const = 0;

    virtual tbool CCL_API loadContent (
        IFileSystem& fileSystem,
        VariantRef data,
        IProgressNotify* progress = nullptr
    ) = 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

Handler for saving/loading multiple objects to/from persistent storage.

<>

Methods

virtual tbool CCL_API saveContent (
    IFileSystem& fileSystem,
    VariantRef data,
    IProgressNotify* progress = nullptr
) const = 0

Save content to persistent storage.

virtual tbool CCL_API loadContent (
    IFileSystem& fileSystem,
    VariantRef data,
    IProgressNotify* progress = nullptr
) = 0

Load content from persistent storage.