| 46 | |
| 47 | |
| 48 | void 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 | |
| 65 | bool OptionSet::hasOption(const std::string& name, bool matchShort) const |
no test coverage detected