Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CL_ResourceManager Class Reference

#include <resource_manager.h>

List of all members.

Public Member Functions

 CL_ResourceManager ()
 Construction:.
 ~CL_ResourceManager ()
bool resource_exists (const CL_StringA &resource_id) const
 Attributes:.
std::vector< CL_StringAget_section_names () const
std::vector< CL_StringAget_resource_names () const
std::vector< CL_StringAget_resource_names (const CL_StringA &section) const
std::vector< CL_StringAget_resource_names_of_type (const CL_StringA &type) const
std::vector< CL_StringAget_resource_names_of_type (const CL_StringA &type, const CL_StringA &section) const
CL_Resource get_resource (const CL_StringA &resource_id, bool resolve_alias=true, int reserved=0)
CL_VirtualDirectory get_directory () const
void add_resources (const CL_ResourceManager &additional_resources)
 Operations:.
void remove_resources (const CL_ResourceManager &additional_resources)
CL_Resource create_resource (const CL_StringA &resource_id, const CL_StringA &type)
void destroy_resource (const CL_StringA &resource_id)
void destroy_resource (const CL_Resource &resource)
void save (const CL_StringA &filename)
void save (const CL_StringA &filename, const CL_VirtualDirectory &directory)
void save (const CL_IODevice *file)
void load (const CL_StringA &filename)
void load (const CL_StringA &filename, const CL_VirtualDirectory &directory)
void load (const CL_IODevice *file, const CL_VirtualDirectory &directory)
void set_directory (const CL_VirtualDirectory &directory)

Private Member Functions

 CL_ResourceManager (CL_WeakPtr< CL_ResourceManager_Impl > &impl)
 Implementation:.

Private Attributes

CL_SharedPtr< CL_ResourceManager_Implimpl

Friends

class CL_Resource


Constructor & Destructor Documentation

CL_ResourceManager::CL_ResourceManager  ) 
 

Construction:.

Definition at line 55 of file resource_manager.cpp.

CL_ResourceManager::~CL_ResourceManager  ) 
 

Definition at line 59 of file resource_manager.cpp.

CL_ResourceManager::CL_ResourceManager CL_WeakPtr< CL_ResourceManager_Impl > &  impl  )  [private]
 

Implementation:.

Definition at line 171 of file resource_manager.cpp.


Member Function Documentation

void CL_ResourceManager::add_resources const CL_ResourceManager additional_resources  ) 
 

Operations:.

Definition at line 119 of file resource_manager.cpp.

CL_Resource CL_ResourceManager::create_resource const CL_StringA resource_id,
const CL_StringA type
 

Definition at line 127 of file resource_manager.cpp.

References CL_Resource.

void CL_ResourceManager::destroy_resource const CL_Resource resource  ) 
 

Definition at line 136 of file resource_manager.cpp.

void CL_ResourceManager::destroy_resource const CL_StringA resource_id  ) 
 

Definition at line 132 of file resource_manager.cpp.

CL_VirtualDirectory CL_ResourceManager::get_directory  )  const
 

Definition at line 111 of file resource_manager.cpp.

References impl.

CL_Resource CL_ResourceManager::get_resource const CL_StringA resource_id,
bool  resolve_alias = true,
int  reserved = 0
 

Definition at line 103 of file resource_manager.cpp.

References CL_Resource.

std::vector< CL_StringA > CL_ResourceManager::get_resource_names const CL_StringA section  )  const
 

Definition at line 83 of file resource_manager.cpp.

std::vector< CL_StringA > CL_ResourceManager::get_resource_names  )  const
 

Definition at line 77 of file resource_manager.cpp.

std::vector< CL_StringA > CL_ResourceManager::get_resource_names_of_type const CL_StringA type,
const CL_StringA section
const
 

Definition at line 95 of file resource_manager.cpp.

std::vector< CL_StringA > CL_ResourceManager::get_resource_names_of_type const CL_StringA type  )  const
 

Definition at line 89 of file resource_manager.cpp.

std::vector< CL_StringA > CL_ResourceManager::get_section_names  )  const
 

Definition at line 71 of file resource_manager.cpp.

void CL_ResourceManager::load const CL_IODevice file,
const CL_VirtualDirectory directory
 

Definition at line 160 of file resource_manager.cpp.

void CL_ResourceManager::load const CL_StringA filename,
const CL_VirtualDirectory directory
 

Definition at line 156 of file resource_manager.cpp.

void CL_ResourceManager::load const CL_StringA filename  ) 
 

Definition at line 152 of file resource_manager.cpp.

void CL_ResourceManager::remove_resources const CL_ResourceManager additional_resources  ) 
 

Definition at line 123 of file resource_manager.cpp.

bool CL_ResourceManager::resource_exists const CL_StringA resource_id  )  const
 

Attributes:.

Definition at line 66 of file resource_manager.cpp.

void CL_ResourceManager::save const CL_IODevice file  ) 
 

Definition at line 148 of file resource_manager.cpp.

void CL_ResourceManager::save const CL_StringA filename,
const CL_VirtualDirectory directory
 

Definition at line 144 of file resource_manager.cpp.

void CL_ResourceManager::save const CL_StringA filename  ) 
 

Definition at line 140 of file resource_manager.cpp.

void CL_ResourceManager::set_directory const CL_VirtualDirectory directory  ) 
 

Definition at line 164 of file resource_manager.cpp.


Friends And Related Function Documentation

friend class CL_Resource [friend]
 

Definition at line 121 of file resource_manager.h.

Referenced by create_resource(), and get_resource().


Member Data Documentation

CL_SharedPtr<CL_ResourceManager_Impl> CL_ResourceManager::impl [private]
 

Definition at line 119 of file resource_manager.h.

Referenced by get_directory().


The documentation for this class was generated from the following files:
Generated on Sat Feb 19 22:51:18 2005 for npcore by  doxygen 1.4.1