|
kodi
|
Factory that provides CBufferObject registration and creation. More...
#include <BufferObjectFactory.h>

Static Public Member Functions | |
| static std::unique_ptr< CBufferObject > | CreateBufferObject (bool needsCreateBySize) |
| Create a CBufferObject from the registered BufferObject types. More... | |
| static void | RegisterBufferObject (const std::function< std::unique_ptr< CBufferObject >()> &) |
| Registers a CBufferObject class to class to the factory. | |
| static void | ClearBufferObjects () |
| Clears the list of registered CBufferObject types. More... | |
Static Protected Attributes | |
| static std::list< std::function< std::unique_ptr< CBufferObject >)> > | m_bufferObjects |
Factory that provides CBufferObject registration and creation.
|
static |
Clears the list of registered CBufferObject types.
|
static |
Create a CBufferObject from the registered BufferObject types.
In the future this may include some criteria for selecting a specific CBufferObject derived type. Currently it returns the CBufferObject implementation that was registered last.
1.8.13