跳到主要内容

aclopSetAttrString

aclopSetAttrInt

函数功能

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

函数原型

aclError aclopSetAttrInt(****aclopAttr *attr, const char *attrName, int64_t attrValue)

参数说明

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

返回值说明

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

父主题: aclopAttr

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

在线提单