GetFileValue

Function Usage

Obtains the value based on the input key.

Prototype

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

Parameters

Parameter

Input/Output

Description

key

Input

Keyword

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.

Response Parameters

Data Structure

Description

APP_ERROR

For details about the returned error codes, see APP_ERROR Description.