1# IExecutor 2 3 4## 概述 5 6定义执行器接口,用于获取执行器,获取凭据模版信息,注册人脸特征模版,进行用户人脸认证,删除人脸特征模版等。 7 8**起始版本:** 4.0 9 10**相关模块:**[HdfFaceAuth](_hdf_face_auth_v11.md) 11 12 13## 汇总 14 15 16### Public 成员函数 17 18| 名称 | 描述 | 19| -------- | -------- | 20| [GetProperty](#getproperty) ([in] unsigned long[] templateIdList, [in] enum [GetPropertyType](_hdf_face_auth_v11.md#getpropertytype)[] propertyTypes, [out] struct [Property](_property_faceauth_v11.md) property) | 获得人脸执行器属性。 | 21| [SetCachedTemplates](#setcachedtemplates) ([in] unsigned long[] templateIdList) | 设置缓存模板。 | 22| [RegisterSaCommandCallback](#registersacommandcallback) ([in] [ISaCommandCallback](interface_i_sa_command_callback_faceauth_v11.md) callbackObj) | 注册sa命令回调。 | 23 24 25## 成员函数说明 26 27 28### GetProperty() 29 30``` 31IExecutor::GetProperty ([in] unsigned long[] templateIdList, [in] enum GetPropertyType[] propertyTypes, [out] struct Property property ) 32``` 33**描述** 34 35获得人脸执行器属性。 36 37**参数:** 38 39| 名称 | 描述 | 40| -------- | -------- | 41| templateIdList | 模板id列表。 | 42| propertyTypes | 人脸执行器属性类型。详细说明请参考[GetPropertyType](_hdf_face_auth_v11.md#getpropertytype)。 | 43| property | 人脸执行器属性。详细说明请参考[Property](_property_faceauth_v11.md)。 | 44 45**返回:** 46 470 表示操作成功。 48 49非0 表示操作失败。 50 51 52### RegisterSaCommandCallback() 53 54``` 55IExecutor::RegisterSaCommandCallback ([in] ISaCommandCallback callbackObj) 56``` 57**描述** 58 59注册sa命令回调。 60 61**参数:** 62 63| 名称 | 描述 | 64| -------- | -------- | 65| callbackObj | 表示sa命令回调。 | 66 67**返回:** 68 690 表示操作成功。 70 71非0 表示操作失败。 72 73 74### SetCachedTemplates() 75 76``` 77IExecutor::SetCachedTemplates ([in] unsigned long[] templateIdList) 78``` 79**描述** 80 81设置缓存模板。 82 83**参数:** 84 85| 名称 | 描述 | 86| -------- | -------- | 87| templateIdList | 人脸缓存的模板列表。 | 88 89**返回:** 90 910 表示操作成功。 92 93非0 表示操作失败。 94