cocos-engine-external/android/armeabi/include/anysdk/PluginFactory.h

42 lines
841 B
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/** @file PluginFactory.h
*/
#ifndef __CCX_PLUGIN_FACTORY_H__
#define __CCX_PLUGIN_FACTORY_H__
namespace anysdk { namespace framework {
class PluginProtocol;
class PluginManager;
/**   
 *  @class  PluginFactory  
*/
class PluginFactory
{
public:
virtual ~PluginFactory();
/**
@brief Get singleton of PluginFactory
*/
static PluginFactory* getInstance();
/**
@brief Destory the instance of PluginFactory
*/
static void purgeFactory();
private:
friend class PluginManager;
PluginFactory(void);
/**
@brief create the plugin by name and type
@param the name of plugin
@param the type of plugin
*/
PluginProtocol* createPlugin(const char* name, int pluginType);
};
}} //namespace anysdk { namespace framework {
#endif /* __CCX_PLUGIN_FACTORY_H__ */