目录

GetValue

Function Description

Obtains the value of value in the key-value pair and converts the obtained value from the T type to the DT type. The supported conversion options are as follows:

Function Prototype

APIs taking string arguments will be deprecated in future releases. Use APIs taking non-string arguments instead.

template<typename T, typename DT>
graphStatus GetValue(DT &val) const
graphStatus GetValue(AscendString &val);

Parameters

Parameter Input/Output Description
val Output Parameter of the DT type.

Return Value

Type Description
graphStatus If the data type is converted successfully, GRAPH_SUCCESS is returned. Otherwise, GRAPH_FAILED is returned.

Exception Handling

None

Restrictions

None