| 132 | |
| 133 | |
| 134 | std::vector<Option> Options::getOptions(std::string const& name) const |
| 135 | { |
| 136 | std::vector<Option> output; |
| 137 | |
| 138 | // If we have an empty name, return them all |
| 139 | if (name.empty()) |
| 140 | { |
| 141 | for (auto it = m_options.begin(); it != m_options.end(); ++it) |
| 142 | { |
| 143 | output.push_back(it->second); |
| 144 | } |
| 145 | } |
| 146 | else |
| 147 | { |
| 148 | auto ret = m_options.equal_range(name); |
| 149 | for (auto it = ret.first; it != ret.second; ++it) |
| 150 | { |
| 151 | output.push_back(it->second); |
| 152 | } |
| 153 | } |
| 154 | return output; |
| 155 | } |
| 156 | |
| 157 | |
| 158 | /** |