diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-04-10 13:04:04 +0200 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-04-10 13:04:04 +0200 |
commit | d6aff895972f87044bcc3378e9681b50c038591a (patch) | |
tree | b45854b527cdbaad540ccad9e2c7b2f2142a7875 | |
parent | 993e905ac4ad8d4439124390874b4a787969f09d (diff) |
added implementation for Extension::iniVariables() method
-rw-r--r-- | include/extension.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/extension.h b/include/extension.h index 8f3dc97..f03c8fb 100644 --- a/include/extension.h +++ b/include/extension.h @@ -155,7 +155,11 @@ public: * * @param callback */ - void iniVariables(const std::function<void(Ini &ini)> &callback); + void iniVariables(const std::function<void(Ini &ini)> &callback) + { + // loop through the entries and apply the callback to each one + for (auto ini : _ini_entries) callback(*ini); + } /** * Retrieve the module pointer |