#include <resource.h>
Implementation | |
| class | CL_ResourceManager |
Public Member Functions | |
Construction | |
| CL_Resource () | |
| ~CL_Resource () | |
Attributes | |
| CL_String | get_type () const |
| Returns the resource type. | |
| CL_String | get_name () const |
| Returns the name of the resource. | |
| CL_DomElement & | get_element () |
| Returns the DOM element describing the resource. | |
| CL_ResourceManager | get_manager () |
| Returns the resource manager owning the resource. | |
| CL_UnknownSharedPtr | get_data (const CL_String &data_name) |
| Returns the object stored in the given data name. | |
| int | get_data_session_count (const CL_String &data_name) |
| Returns the number of CL_ResourceDataSession objects using this resource. | |
Operations | |
| bool | operator== (const CL_Resource &other) const |
| Compares this resource to another resource. | |
| void | set_data (const CL_String &data_name, const CL_UnknownSharedPtr &ptr) |
| Store object in resource. | |
| void | clear_data (const CL_String &data_name) |
| Remove object stored with the given data name. | |
| int | add_data_session (const CL_String &data_name) |
| Increment the usage session count for the resource. | |
| int | remove_data_session (const CL_String &data_name) |
| Decrement the usage session count for the resource. | |
|
|
|
|
|
|
|
|
Increment the usage session count for the resource.
|
|
|
Remove object stored with the given data name.
|
|
|
Returns the object stored in the given data name.
|
|
|
Returns the number of CL_ResourceDataSession objects using this resource.
|
|
|
Returns the DOM element describing the resource.
|
|
|
Returns the resource manager owning the resource.
|
|
|
Returns the name of the resource.
|
|
|
Returns the resource type.
|
|
|
Compares this resource to another resource.
|
|
|
Decrement the usage session count for the resource.
|
|
||||||||||||
|
Store object in resource.
|
|
|
|
1.4.6