#include <resource.hpp>
Resource manager
- Author
- Vincent Lachenal
◆ ~Resource()
virtual anch::resource::Resource::~Resource |
( |
| ) |
|
|
virtual |
◆ getConfiguration()
Get resource configuration
- Returns
- The configuration
◆ getParameter()
bool anch::resource::Resource::getParameter |
( |
std::string & | value, |
|
|
const std::string & | param, |
|
|
const std::string & | section = "" ) const |
Get parameter value from its name and section
- Parameters
-
value | The value to set |
param | The parameter to find |
section | The parameter section (optional) |
- Returns
true
if value has been found, false
otherwise.
◆ getResource()
static const Resource & anch::resource::Resource::getResource |
( |
const std::string & | filePath | ) |
|
|
static |
Get Resource instance from file
- Parameters
-
filePath | The resource file path |
- Returns
- The Resource unique instance
◆ parameter()
std::optional< std::string > anch::resource::Resource::parameter |
( |
const std::string & | param | ) |
const |
Access parameter without section
- Parameters
-
- Returns
- the optional result
◆ section()
Access section
- Parameters
-
- Returns
- the optional result
The documentation for this class was generated from the following file: