[sword-devel] Behavior of SWModule::getConfigEntry in case of multiple entries with same key
Peter von Kaehne
refdoc at gmx.net
Sun May 5 02:04:11 MST 2019
On Sun, 2019-05-05 at 08:49 +0200, Tobias Klein wrote:
> Hi,
> how is SWModule::getConfigEntry(const char *key) supposed to behave
> when there are multiple entries with the same key?
There is a set of separate methods for those.
Check out ./examples/cmdline/listoptions.cpp
> {
> SWMgr library;
>
> StringList options = library.getGlobalOptions();
> for (StringList::const_iterator it = options.begin(); it !=
> options.end(); ++it) {
> cout << *it << " (" <<
> library.getGlobalOptionTip(*it) << ")\n";
> StringList optionValues =
> library.getGlobalOptionValues(*it);
> for (StringList::const_iterator it2 =
> optionValues.begin(); it2 != optionValues.end(); ++it2) {
> cout << "\t" << *it2 << "\n";
> }
> }
>
More information about the sword-devel
mailing list