| 656 | } |
| 657 | |
| 658 | bool OptionColor(std::vector<DeviceOptions>* current_devices, std::string argument, Options* options) |
| 659 | { |
| 660 | /*---------------------------------------------------------*\ |
| 661 | | If a device is not selected i.e. size() == 0 | |
| 662 | | then add color to allDeviceOptions | |
| 663 | \*---------------------------------------------------------*/ |
| 664 | bool found = false; |
| 665 | DeviceOptions* currentDevOpts = &options->allDeviceOptions; |
| 666 | |
| 667 | if(current_devices->size() == 0) |
| 668 | { |
| 669 | found = CheckColor(argument, currentDevOpts); |
| 670 | } |
| 671 | else |
| 672 | { |
| 673 | for(size_t i = 0; i < current_devices->size(); i++) |
| 674 | { |
| 675 | currentDevOpts = ¤t_devices->at(i); |
| 676 | |
| 677 | found = CheckColor(argument, currentDevOpts); |
| 678 | } |
| 679 | } |
| 680 | |
| 681 | return found; |
| 682 | } |
| 683 | |
| 684 | bool OptionMode(std::vector<DeviceOptions>* current_devices, std::string argument, Options* options) |
| 685 | { |
no test coverage detected