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

GetAttr

Function Prototype

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

Function Description

Obtains the value of an attribute.

Parameter Description

Parameter

Input/Output

Type

Description

name

Input

const string&

Attribute name

value

Output

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