Updated on 2022-03-13 GMT+08:00

SetAttr

Function Prototype

graphStatus SetAttr(const string& name, const AttrValue& value);

Function Description

Sets the value of an attribute.

Parameter Description

Parameter

Input/Output

Type

Description

name

Input

const string&

Attribute name

value

Input

const AttrValue&

Attribute value

Return Value

Parameter

Type

Description

-

graphStatus

If the operation is successful, GRAPH_SUCCESS is returned. Otherwise, GRAPH_FAILED is returned.

Exception Handling

None

Restriction

None