| 435 | } |
| 436 | |
| 437 | std::string |
| 438 | Source::Config::getParam(const std::string &key) const |
| 439 | { |
| 440 | const char *param; |
| 441 | |
| 442 | if (this->instance == nullptr) |
| 443 | return ""; |
| 444 | |
| 445 | param = suscan_source_config_get_param(this->instance, key.c_str()); |
| 446 | |
| 447 | if (param == nullptr) |
| 448 | return ""; |
| 449 | |
| 450 | return param; |
| 451 | } |
| 452 | |
| 453 | bool |
| 454 | Source::Config::hasParam(const std::string &key) const |
no outgoing calls
no test coverage detected