struct Core::IO::IStreamStorable

Overview

A storable can store/restore its state to/from a stream. More…

#include <corestorable.h>

struct IStreamStorable
{
    // fields

    static const InterfaceID kIID = FOUR_CHAR_ID('S','t','r', 'S');

    // methods

    virtual tbool save(IByteStream& stream) const = 0;
    virtual tbool load(IByteStream& stream) = 0;
};

// direct descendants

struct TestStorable;

Detailed Documentation

A storable can store/restore its state to/from a stream.

This class is abstract.

Methods

virtual tbool save(IByteStream& stream) const = 0

Store current state to stream.

virtual tbool load(IByteStream& stream) = 0

Restore state from stream.