| 34 | bool SettingDataFrames::IsValid() const { return IsFrames(this->value) || this->value.empty(); } |
| 35 | |
| 36 | SettingInputError SettingDataFrames::ProcessInput(const std::string& input_value) { |
| 37 | if (input_value.empty()) return SETTING_INPUT_ERROR_EMPTY; |
| 38 | |
| 39 | if (!IsFrames(input_value)) return SETTING_INPUT_ERROR_SYNTAX; |
| 40 | |
| 41 | std::string saved_data = this->value; |
| 42 | this->value = input_value; |
| 43 | |
| 44 | if (!IsValid()) { |
| 45 | this->value = saved_data; |
| 46 | return SETTING_INPUT_ERROR_SEMENTICS; |
| 47 | } |
| 48 | |
| 49 | return SETTING_INPUT_NO_ERROR; |
| 50 | } |
nothing calls this directly
no test coverage detected