| 471 | } |
| 472 | |
| 473 | bool is_valid_scheme(const std::string& scheme_name, schemes& iOutput) { |
| 474 | auto& scheme_information = get_scheme_information(); |
| 475 | auto it = scheme_information.index_map.find(scheme_name); |
| 476 | // If equal to end, not found |
| 477 | if (it != scheme_information.index_map.end()) { |
| 478 | // Found, return it |
| 479 | iOutput = static_cast<schemes>(it->second); |
| 480 | return true; |
| 481 | } else { |
| 482 | return false; |
| 483 | } |
| 484 | } |
| 485 | |
| 486 | schemes get_scheme_index(const std::string& scheme_name) { |
| 487 | schemes iScheme; |