HoverRace  2.0
Public Member Functions | Private Types | Private Attributes | List of all members
HoverRace::Parcel::ResBundle Class Reference

Abstraction for loading resources. More...

#include <ResBundle.h>

+ Inheritance diagram for HoverRace::Parcel::ResBundle:

Public Member Functions

 ResBundle (const Util::OS::path_t &dir, std::shared_ptr< ResBundle > subBundle=std::shared_ptr< ResBundle >())
 
virtual ~ResBundle ()
 
void FreeResources ()
 Unload all loaded resources. More...
 
ObjFacTools::ResourceLibGetResourceLib () const
 
- Public Member Functions inherited from HoverRace::Parcel::Bundle
 Bundle (const Util::OS::path_t &dir, std::shared_ptr< Bundle > subBundle=std::shared_ptr< Bundle >())
 Constructor. More...
 
virtual ~Bundle ()
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
iterator end ()
 
const_iterator end () const
 
virtual std::shared_ptr< RecordFileOpenParcel (const std::string &name, bool writing=false) const
 Open an existing parcel. More...
 

Private Types

using SUPER = Bundle
 

Private Attributes

std::unique_ptr< ObjFacTools::ResourceLibresourceLib
 

Additional Inherited Members

- Public Types inherited from HoverRace::Parcel::Bundle
using const_iterator = Iterator
 
using iterator = Iterator
 
using value_type = Util::OS::dirEnt_t
 

Detailed Description

Abstraction for loading resources.

Author
Michael Imamura

Member Typedef Documentation

Constructor & Destructor Documentation

HoverRace::Parcel::ResBundle::ResBundle ( const Util::OS::path_t dir,
std::shared_ptr< ResBundle subBundle = std::shared_ptr<ResBundle>() 
)
HoverRace::Parcel::ResBundle::~ResBundle ( )
virtual

Member Function Documentation

void HoverRace::Parcel::ResBundle::FreeResources ( )

Unload all loaded resources.

This should be performed on exit (before the subsystems shut down), and whenever it would be beneficial to free memory to load new resources.

ObjFacTools::ResourceLib & HoverRace::Parcel::ResBundle::GetResourceLib ( ) const

Member Data Documentation

std::unique_ptr<ObjFacTools::ResourceLib> HoverRace::Parcel::ResBundle::resourceLib
mutableprivate

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