store


Description:

public abstract bool store (Serializable resource, string resource_name) throws Error

Store a resource under a given name.

The resource manager must guarantee that the stored data survives system reboots and that you can recreate a copy of resource by calling load using the same resource_name.

Important note: This call may do blocking IO. The resource manager must guarantee that this call is reasonably fast, like writing the externalized resource to a file, but not blocking IO over a network socket.

Parameters:

this

The resource manager to invoke

resource

A Serializable to store under resource_name

resource_name

The name to store the resource under. Will overwrite any existing resource with the same name

Returns:

true on success and false otherwise. In case of a runtime error the error pointer will point to a Error in the DeeResourceError domain.