MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / addOption

Method addOption

base/poco/Util/src/OptionSet.cpp:48–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47
48void OptionSet::addOption(const Option& option)
49{
50 poco_assert (!option.fullName().empty());
51 OptionVec::const_iterator it = _options.begin();
52 OptionVec::const_iterator itEnd = _options.end();
53 for (; it != itEnd; ++it)
54 {
55 if (it->fullName() == option.fullName())
56 {
57 throw DuplicateOptionException(it->fullName());
58 }
59 }
60
61 _options.push_back(option);
62}
63
64
65bool OptionSet::hasOption(const std::string& name, bool matchShort) const

Callers 5

defineOptionsMethod · 0.80
defineOptionsMethod · 0.80
defineOptionsMethod · 0.80
defineOptionsMethod · 0.80
defineOptionsMethod · 0.80

Calls 4

emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected