| 273 | } |
| 274 | |
| 275 | StringList Compomer::getLabels(const UInt side) const |
| 276 | { |
| 277 | if (side >= BOTH) |
| 278 | { |
| 279 | throw Exception::InvalidValue(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, "Compomer::getLabels() does not support this value for 'side'!", String(side)); |
| 280 | } |
| 281 | StringList tmp; |
| 282 | |
| 283 | for (CompomerSide::const_iterator it = this->cmp_[side].begin(); it != this->cmp_[side].end(); ++it) |
| 284 | { |
| 285 | if (!it->second.getLabel().empty()) |
| 286 | { |
| 287 | tmp.push_back(it->second.getLabel()); |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | return tmp; |
| 292 | } |
| 293 | |
| 294 | /// Adds @p add_side to this compomer. |
| 295 | void Compomer::add(const CompomerSide& add_side, UInt side) |