All Classes |Grouped Classes |Index

Class CL_ResourceManager

Resource Manager. More...

Derived from:

None

Derived by:

None

Group:

Resources (Core)

#include <ClanLib/core.h>

Class Members:

Construction:

CL_ResourceManager

Construct a resource manager.


Attributes:

resource_exists

Returns true if a resource exists.

get_section_names

Returns all the resource sections available.

get_resource_names

Returns a list of all resources available.

get_resource_names_of_type

Returns a list of all resources available matching a given type.

get_resource

Returns CL_Resource representing the given resource.

get_directory

Returns the directory to load resource data from.

get_boolean_resource

Returns the value of a boolean resource. (using the value attribute)

get_integer_resource

Returns the value of an integer resource. (using the value attribute)

get_string_resource

Returns the value of an string resource. (using the value attribute)


Operations:

operator==

set_directory

Set the resource data directory.

add_resources

Add resources from an other resource manager.

remove_resources

Remove resources from an other resource manager.

create_resource

Construct a new resource object.

destroy_resource

Destroy resource object.

save

Save resource XML tree to file.

load

Load resource XML tree from file.