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| templateIdList | 模板id列表。 | 41| propertyTypes | 人脸执行器属性类型。详细说明请参考[GetPropertyType](_hdf_face_auth_v11.md#getpropertytype)。 | 42| property | 人脸执行器属性。详细说明请参考[Property](_property_faceauth_v11.md)。 | 43 44**返回:** 45 460 表示操作成功。 47 48非0 表示操作失败。 49 50 51### RegisterSaCommandCallback() 52 53``` 54IExecutor::RegisterSaCommandCallback ([in] ISaCommandCallback callbackObj) 55``` 56**描述** 57注册sa命令回调。 58 59**参数:** 60 61| 名称 | 描述 | 62| -------- | -------- | 63| callbackObj | 表示sa命令回调。 | 64 65**返回:** 66 670 表示操作成功。 68 69非0 表示操作失败。 70 71 72### SetCachedTemplates() 73 74``` 75IExecutor::SetCachedTemplates ([in] unsigned long[] templateIdList) 76``` 77**描述** 78设置缓存模板。 79 80**参数:** 81 82| 名称 | 描述 | 83| -------- | -------- | 84| templateIdList | 人脸缓存的模板列表。 | 85 86**返回:** 87 880 表示操作成功。 89 90非0 表示操作失败。 91