struct Core::IO::ContainerStorer

Overview

Helper struct writing/reading multiple IStreamStorable ‘s to/from a stream. More…

#include <corestorable.h>

struct ContainerStorer
{
    // structs

    struct Item;

    // construction

    ContainerStorer(IByteStream& stream, const Item items[], int count);

    // methods

    bool storeAll();
    bool restore(int32 id);
    bool restoreAll();
};

Detailed Documentation

Helper struct writing/reading multiple IStreamStorable ‘s to/from a stream.

Methods

bool storeAll()

Store all storables to stream.

bool restore(int32 id)

Restore a single storable from stream.

bool restoreAll()

Restore all storables from stream.