![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
The ClanLib resource manager.
Contained in: global
Derived from:
none
Derived by:
none
Group: Core (Resources)
#include <ClanLib/core.h>
public function member index: |
||
Construction: |
||
CL_ResourceManager | (const std::string& config_file, CL_InputSourceProvider* provider = NULL, bool read_directly_from_source=false, bool delete_inputsource_provider=false); | |
CL_ResourceManager | (const std::string& config_file, const bool is_datafile); | |
CL_ResourceManager | (const std::string& config_file, const bool is_datafile, CL_ResourceManager& additional_resources); | |
CL_ResourceManager | (const CL_ResourceManager& copy); | |
CL_ResourceManager | (); | |
~CL_ResourceManager | (); | |
Attributes: |
||
CL_Resource& | get_resource | (const std::string& res_id); |
std::list<std::string>* | get_all_resources | (); |
std::list<std::string>* | get_resources_of_type | (const std::string& type_id); |
CL_InputSourceProvider* | get_resource_provider | () const; |
bool | is_from_source | (); |
Operations: |
||
void | operator = | (const CL_ResourceManager& copy); |
void | add_resources | (const CL_ResourceManager& additional_resources); |
void | remove_resources | (const CL_ResourceManager& additional_resources); |
void | load_all | (); |
void | unload_all | (); |
void | load_section | (const std::string& section_name); |
void | unload_section | (const std::string& section_name); |
Implementation: |
||
CL_ResourceManager | (class CL_ResourceManager_File* impl); | |
config_file - the name of the file in which the resources are defined
provider - the optional inputprovider in which, the resource file is stored
read_directly_from_source - if true, any resources are loaded directly from their source, meaning that any datafile-directive is ignored.
file_name - the name of the file to open
is_datafile - indicates if the file is a scriptfile or a datafile
file_name - the name of the file to open
is_datafile - indicates if the file is a scriptfile or a datafile
additional_resources - additional resources to be included into the resource set.
Returns - The list of resources available. You'll have to delete the list returned.
Returns - Pointer to inputsourceprovider containing resource data.
Returns - The list of resources available. You'll have to delete the list returned.