LoadConfiguration
Function Usage
Reads configuration file data.
Prototype
APP_ERROR ConfigUtil::LoadConfiguration(const std::string &config, ConfigData &data, ConfigMode mode = CONFIGJSON);
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
config |
Input |
Configuration file path. |
data |
Output |
Obtains parameter data from the configuration file. |
mode |
Input |
File type: ● CONFIGJSON: JSON file ● CONFIGFILE: Normal file ● CONFIGPM: PM file ● CONFIGCONTENT: JSON content |
Return Parameter Description
Data Structure |
Calculation Description |
|---|---|
APP_ERROR |
Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file. |
Parent topic: ConfigUtil