插件引擎改进(未完成)
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
#define HGL_PLUGIN_INCLUDE
|
||||
|
||||
#include<hgl/type/BaseString.h>
|
||||
#include<hgl/plugin/PlugInInterface.h>
|
||||
namespace hgl
|
||||
{
|
||||
/**
|
||||
@@ -15,18 +14,16 @@ namespace hgl
|
||||
uint ref_count;
|
||||
|
||||
uint ver;
|
||||
UTF16String name;
|
||||
OSString name;
|
||||
UTF16String intro;
|
||||
|
||||
OSString filename; ///<插件文件名
|
||||
|
||||
PlugInInterface *plugin_interface;
|
||||
|
||||
public:
|
||||
|
||||
const uint GetVersion ()const{return ver;} ///<取得插件版本
|
||||
const OSString & GetName ()const{return name;} ///<取得插件名称
|
||||
const UTF16String & GetIntro ()const{return intro;} ///<取得插件介绍
|
||||
const UTF16String & GetName ()const{return name;} ///<取得插件名称
|
||||
|
||||
public:
|
||||
|
||||
@@ -34,13 +31,14 @@ namespace hgl
|
||||
{
|
||||
ref_count=0;
|
||||
ver=0;
|
||||
plugin_interface=nullptr;
|
||||
}
|
||||
|
||||
virtual ~PlugIn();
|
||||
|
||||
uint add_ref(){return ++ref_count;}
|
||||
uint release_ref(){return --ref_count;}
|
||||
|
||||
virtual bool GetInterface(uint,void *)=0;
|
||||
};//class PlugIn
|
||||
}//namespace hgl
|
||||
#endif//HGL_PLUGIN_INCLUDE
|
||||
|
Reference in New Issue
Block a user