跳到主要内容

aclopSetAttrListInt

aclopSetAttrFloat

函数功能

设置float类型标量的属性值。同步接口。

函数原型

aclError aclopSetAttrFloat(aclopAttr *attr, const char *attrName, float attrValue)

参数说明

参数名输入/输出说明
attr输出aclopAttr类型的指针。 需提前调用aclopCreateAttr接口创建aclopAttr类型。
attrName输入属性名的指针。
attrValue输入属性值。

返回值说明

返回0表示成功,返回非0表示失败。

父主题: aclopAttr

aclopSetAttrString

函数功能

设置字符串类型标量的属性值。同步接口。

函数原型

aclError aclopSetAttrString(****aclopAttr *attr, const char *attrName, const char *attrValue)

参数说明

参数名输入/输出说明
attr输出aclopAttr类型的指针。 需提前调用aclopCreateAttr接口创建aclopAttr类型。
attrName输入属性名的指针。
attrValue输入属性值的指针。

返回值说明

返回0表示成功,返回非0表示失败。

父主题: aclopAttr

aclopSetAttrListBool

函数功能

设置bool类型列表的属性值。同步接口。

函数原型

aclError aclopSetAttrListBool(aclopAttr *attr, const char *attrName, int numValues, const uint8_t *values)

参数说明

参数名输入/输出说明
attr输出aclopAttr类型的指针。 需提前调用aclopCreateAttr接口创建aclopAttr类型。
attrName输入属性名的指针。
numValues输入属性值数目。
values输入属性值的数组。

返回值说明

返回0表示成功,返回非0表示失败。

父主题: aclopAttr

aclopSetAttrListInt

函数功能

设置int64_t类型列表的属性值。同步接口。

函数原型

aclError aclopSetAttrListInt(aclopAttr *attr, const char *attrName, int numValues, const int64_t *values)

参数说明

参数名输入/输出说明
attr输出aclopAttr类型的指针。 需提前调用aclopCreateAttr接口创建aclopAttr类型。
attrName输入属性名的指针。
numValues输入属性值数目。
values输入属性值的数组。

返回值说明

返回0表示成功,返回非0表示失败。

父主题: aclopAttr

aclopSetAttrListFloat

函数功能

设置float类型列表的属性值。同步接口。

函数原型

aclError aclopSetAttrListFloat(aclopAttr *attr, const char *attrName, int numValues, const float *values)

参数说明

参数名输入/输出说明
attr输出aclopAttr类型的指针。 需提前调用aclopCreateAttr接口创建aclopAttr类型。
attrName输入属性名的指针。
numValues输入属性值数目。
values输入属性值的数组。

返回值说明

返回0表示成功,返回非0表示失败。

父主题: aclopAttr

aclopSetAttrListString

函数功能

设置字符串类型列表的属性值。同步接口。

函数原型

aclError aclopSetAttrListString(****aclopAttr *attr, const char *attrName, int numValues, const char **values)

参数说明

参数名输入/输出说明
attr输出aclopAttr类型的指针。 需提前调用aclopCreateAttr接口创建aclopAttr类型。
attrName输入属性名的指针。
numValues输入属性值数目。
values输入“属性值的数组”的指针。

返回值说明

返回0表示成功,返回非0表示失败。

父主题: aclopAttr

aclopSetAttrListListInt

函数功能

设置int64_t类型列表的属性值。同步接口。

函数原型

aclError aclopSetAttrListListInt(****aclopAttr *attr,

const char *attrName,

int numLists,

const int *numValues,

const int64_t *const values[]);

参数说明

参数名输入/输出说明
attr输出aclopAttr类型的指针。 需提前调用aclopCreateAttr接口创建aclopAttr类型。
attrName输入属性名的指针。
numLists输入列表数目。
numValues输入列表中属性值数目。 numValues是一个数组,数组中的每个元素表示每个列表中的属性值数目。
values输入列表中属性值的指针数组。

返回值说明

返回0表示成功,返回非0表示失败。

父主题: aclopAttr

在线提单