怎样创建ALModule的API ?

时间:2026-02-16 00:50:54

1、模块生成器创建一个会被代理程序读懂的类:加载一个模块,查看模块函数API等等。

怎样创建ALModule的API ?

2、#define BIND_METHOD( x ) 在模块的API里添加方法x。API(绑定函数)可以被本地或远程调用。 

怎样创建ALModule的API ?

3、void functionName ( const std::string& pName, const std::string& pClass, const std::string& pFunctionDescription );  用来定义绑定方法的名称。 

怎样创建ALModule的API ?

4、void addParam (const std::string& pName, const std::string& pDesc);  用来说明方法的参数 

怎样创建ALModule的API ?

5、virtual AL::ALValue getMethodHelp ( const std::string& pMethodName );  获取methodName的说明 

怎样创建ALModule的API ?

6、AL::ALValue moduleHelp(); 获取模块的说明 

怎样创建ALModule的API ?

© 2026 一点知道
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com