Lines Matching refs:str
39 ScanMethod option_string_to_scan_method(const std::string& str)
41 if (str == STR_FLATBED) {
43 } else if (str == STR_TRANSPARENCY_ADAPTER) {
45 } else if (str == STR_TRANSPARENCY_ADAPTER_INFRARED) {
48 throw SaneException("Unknown scan method option %s", str.c_str());
62 ScanColorMode option_string_to_scan_color_mode(const std::string& str)
64 if (str == SANE_VALUE_SCAN_MODE_COLOR) {
66 } else if (str == SANE_VALUE_SCAN_MODE_GRAY) {
68 } else if (str == SANE_VALUE_SCAN_MODE_HALFTONE) {
70 } else if (str == SANE_VALUE_SCAN_MODE_LINEART) {
73 throw SaneException("Unknown scan color mode %s", str.c_str());