#include <IRhRdkContentFactories.h>
This interface represents the collection of all content factories that are registered with the RDK.
Content factories are RDK extensions. You usually add new content factories to the system when you are called on your implementation of CRhRdkPlugIn::RegisterExtensions(). If necessary, you can also add new factories later by calling RhRdkAddExtension(). Factories so added can be found again later by calling RhRdkContentFactories() which returns this interface.
- See also
- CRhRdkPlugIn::RegisterExtensions()
◆ ~IRhRdkContentFactories()
virtual IRhRdkContentFactories::~IRhRdkContentFactories |
( |
| ) |
|
|
inlinevirtual |
◆ EVF()
virtual void* IRhRdkContentFactories::EVF |
( |
const wchar_t * |
, |
|
|
void * |
|
|
) |
| |
|
pure virtual |
Emergency virtual function for future expansion.
◆ FindFactory()
Find the factory that creates content of the specified type.
- Returns
- A pointer to the factory or nullptr if not found.
◆ FirstFactory()
Get a pointer to the first factory in the collection.
- Returns
- A pointer to the first factory or nullptr if there are none.
◆ NewContentFromType()
virtual CRhRdkContent* IRhRdkContentFactories::NewContentFromType |
( |
const UUID & |
uuidType | ) |
const |
|
pure virtual |
Create a new content from the specified content type.
- Note
- This method calls Initialize() on the new content. If this fails, the new content is deleted and this method returns nullptr.
- Returns
- A pointer to a new instance of the content that this factory produces.
◆ NextFactory()
Get a pointer to the next factory in the collection.
- Returns
- A pointer to the next factory or nullptr if no more.