Hummingbird Framework
 All Classes Functions Variables Modules Pages
hb::SoundManager Class Reference
Inheritance diagram for hb::SoundManager:
Collaboration diagram for hb::SoundManager:

Additional Inherited Members

- Public Member Functions inherited from hb::ResourceManager< SoundManager, sf::SoundBuffer, std::string >
 ResourceManager ()
 Class constructor.
 
 ~ResourceManager ()
 Class destructor.
 
int addResource (const std::string &resource_id, const sf::SoundBuffer &resource)
 Add resource to manager. More...
 
virtual void release (int id)
 Release a resource with identifier id. More...
 
void releaseAll (int id)
 Release all resources with identifier id. More...
 
const sf::SoundBuffer & get (int id) const
 Get resource with identifier id. More...
 
sf::SoundBuffer & get (int id)
 Get resource with identifier id. More...
 
const std::string & getId (int id) const
 Get ResourceId of resource with identifier id. More...
 
bool isLoaded (int id) const
 Returns wether the resource with identifier id is loaded. More...
 
bool isLoaded (const std::string &resource_id) const
 Returns wether the resource with ResourceId resource_id is loaded. More...
 
bool isLoaded (const std::string &resource_id, int &id) const
 Returns wether the resource with ResourceId resource_id is loaded and if it is loaded, puts the ResourceManager id in id. More...
 
int countResourceUsage (int id) const
 Returns number of active requests for resource id. More...
 
int size () const
 Returns number of resources currently loaded. More...
 
int resourceCount () const
 Returns number of all resources ever loaded. More...
 
void clear ()
 Release all resources.
 
- Static Public Member Functions inherited from hb::ResourceManager< SoundManager, sf::SoundBuffer, std::string >
static SoundManagerinstance ()
 Get the singleton instance. More...
 

The documentation for this class was generated from the following file: