#include <resource_manager_file.h>
Inheritance diagram for CL_ResourceManager_File:


Public Methods | |
| CL_ResourceManager_File (const char *config_file, CL_InputSourceProvider *provider=NULL, bool read_directly_from_source=false, bool delete_inputsource_provider=false) | |
| CL_ResourceManager_File (const char *file_name, const bool is_datafile) | |
| virtual | ~CL_ResourceManager_File () |
| virtual void | load_all_resources () |
| virtual void | unload_all_resources () |
| virtual void | load_section (const char *section_name) |
| virtual void | unload_section (const char *section_name) |
| param: section_name - the section to be loaded. | |
| virtual CL_Resource* | get_resource (std::string res_id) |
| param: section_name - the section to be unloaded. | |
| virtual std::list<std::string>* | get_all_resources () |
| param: Name of the resource in the configuration file - note: the name of resources are absolute, eg. including section names with slashes (Graphics/Pacman/sur_pacman). | |
| virtual std::list<std::string>* | get_resources_of_type (std::string type_id) |
| retval: The list of resources available. You'll have to delete all strings in the returnedretval: list manually (including the list-instance itself). | |
| virtual CL_InputSourceProvider* | get_resource_provider () |
| retval: The list of resources available. You'll have to delete all strings in the retval: list manually (including the list-instance itself). | |
Private Methods | |
| void | parse () |
| void | parse_include (CL_ResourceTokenizer &lexer) |
| void | parse_section_body (std::string token, CL_ResourceTokenizer &lexer, std::string prefix) |
| CL_Resource* | create_resource (std::string name, std::string location, CL_ResourceOptions &options) |
Private Attributes | |
| CL_InputSourceProvider* | resource_provider |
| std::list<CL_Resource*> | resources |
| std::string | filename |
| bool | from_source |
| bool | delete_resource_provider |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
param: Name of the resource in the configuration file - note: the name of resources are absolute, eg. including section names with slashes (Graphics/Pacman/sur_pacman).
Reimplemented from CL_ResourceManager. |
|
|
param: section_name - the section to be unloaded.
Reimplemented from CL_ResourceManager. |
|
|
retval: The list of resources available. You'll have to delete all strings in the retval: list manually (including the list-instance itself).
Reimplemented from CL_ResourceManager. |
|
|
retval: The list of resources available. You'll have to delete all strings in the returnedretval: list manually (including the list-instance itself).
Reimplemented from CL_ResourceManager. |
|
|
Reimplemented from CL_ResourceManager. |
|
|
Reimplemented from CL_ResourceManager. |
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from CL_ResourceManager. |
|
|
param: section_name - the section to be loaded.
Reimplemented from CL_ResourceManager. |
|
|
Definition at line 71 of file resource_manager_file.h. |
|
|
Definition at line 69 of file resource_manager_file.h. |
|
|
Definition at line 70 of file resource_manager_file.h. |
|
|
Definition at line 65 of file resource_manager_file.h. |
|
|
Definition at line 67 of file resource_manager_file.h. |
1.2.6 written by Dimitri van Heesch,
© 1997-2001