struct CCL::IStorable

Overview

Interface for saving/loading an object’s state. More…

#include <istorage.h>

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

    virtual tbool CCL_API getFormat (FileType& format) const = 0;
    virtual tbool CCL_API save (IStream& stream) const = 0;
    virtual tbool CCL_API load (IStream& stream) = 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

Interface for saving/loading an object’s state.

<>

Methods

virtual tbool CCL_API getFormat (FileType& format) const = 0

Get file type describing the data format.

virtual tbool CCL_API save (IStream& stream) const = 0

Save state to stream.

virtual tbool CCL_API load (IStream& stream) = 0

Load state from stream.