Add examples dir and create function to dynamically load new modules
This commit is contained in:
1 parent
193c41fddd
commit
ae0f861988
12 files changed
+336
-12
No files matched your search
@@ -42,7 +42,10 @@ class PlaYUVerModuleFactory
|
||||
{
|
||||
private:
|
||||
PlaYUVerModuleFactory();
|
||||
PlaYUVerModuleFactory &operator=( const PlaYUVerModuleFactory & ) { return *this; }
|
||||
PlaYUVerModuleFactory &operator=( const PlaYUVerModuleFactory & )
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
|
||||
PlaYUVerModuleFactoryMap m_FactoryMap;
|
||||
public:
|
||||
@@ -55,8 +58,13 @@ public:
|
||||
}
|
||||
|
||||
Void Register( const char* moduleName, CreateModuleFn pfnCreate );
|
||||
Void RegisterDl( const char* dlName );
|
||||
|
||||
PlaYUVerModuleIf *CreateModule( const char *moduleName );
|
||||
PlaYUVerModuleFactoryMap& getMap(){ return m_FactoryMap; }
|
||||
PlaYUVerModuleFactoryMap& getMap()
|
||||
{
|
||||
return m_FactoryMap;
|
||||
}
|
||||
};
|
||||
|
||||
//// typedef to make it easier to set up our factory
|
||||
|
||||
Reference in new issue
Block a user