Home | All Classes | Grouped Classes | Index | Search

Class CL_Resource

Interface for accessing a resource in the resource manager. More...

Derived from: none
Derived by: none
Group: Core (Resources)

#include <ClanLib/core.h>

Construction:

CL_Resource

Resource constructor.

Attributes:

get_type

Returns the type of the resource.

get_name

Returns the name of the resource.

get_location

Returns the location of the resource (relative to resource definition file).

get_full_location

Returns the full path location of the resource.

get_options

Returns the resource options.

get_manager

Returns the resource manager.

get_data

Returns the data with the matching name.

get_reference_count

Returns the current reference count.

Signals:

sig_load_file

Signal invoked when a call to load_file is made.

sig_load_datafile

Signal invoked when a call to load_datafile is made.

sig_save_datafile

Signal invoked when a call to save_datafile is made.

sig_unload

Signal invoked when a call to unload is made.

Operators:

operator =

Copy a resource.

Operations:

attach_data

Attach some data to the resource.

detach_data

Detach some data from the resource.

unload

Unloads the resource from memory.

load

Loads the resource, using the prefered source as specified by the resource manager.

load_file

Loads the resource from file.

load_datafile

Loads the resource from the input source.

save_datafile

Saves the resource to the output source.

Implementation:

impl

Pointer to implementation

Detailed description:



Questions or comments, write to the
ClanLib mailing list.