GetFileValue

Function Usage

Obtains the input key value.

Prototype

template<typename T> APP_ERROR ConfigData::GetFileValue(const std::string &key, T &value);
template<typename T> APP_ERROR ConfigData::GetFileValue(const std::string &key, T &value, const T &min, const T &max);

Parameter Description

Parameter

Input/Output

Description

key

Input

Keywords

value

Output

Value of a keyword

min

Input

Minimum value. If the value is less than the minimum value, the minimum value is used.

max

Input

Maximum value. If the value is greater than the maximum value, the maximum value is used.

Return Parameter Description

Data Structure

Calculation Description

APP_ERROR

Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file.