Decouple ConfigManager with Env Vars (#5565)
author이한종/On-Device Lab(SR)/Engineer/삼성전자 <hanjoung.lee@samsung.com>
Fri, 5 Jul 2019 10:58:01 +0000 (19:58 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Fri, 5 Jul 2019 10:58:01 +0000 (19:58 +0900)
commit1ecb9ec1f5862d2c9c05354aac48c78172587731
treecd69c93fd4abc43d9bf26c2c061828b7afa8ac08
parentf0373aeca8a781fe48fde59f792b9930e6e3b6de
Decouple ConfigManager with Env Vars (#5565)

- `IConfigSource` is introduced
- `ConfigManager` gets value through `IConfigSource`
- `EnvConfigSource` is a subclass of `IConfgSource` that gets values
  from Env Vars

Resolve #5556

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
runtimes/neurun/core/include/util/ConfigManager.h
runtimes/neurun/core/include/util/IConfigSource.h [new file with mode: 0644]
runtimes/neurun/core/src/util/EnvConfigSource.cc [new file with mode: 0644]
runtimes/neurun/core/src/util/EnvConfigSource.h [new file with mode: 0644]
runtimes/neurun/core/src/util/config/ConfigManager.cc