MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / ProcessInput

Method ProcessInput

vkconfig_core/setting_frames.cpp:36–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34bool SettingDataFrames::IsValid() const { return IsFrames(this->value) || this->value.empty(); }
35
36SettingInputError 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}

Callers

nothing calls this directly

Calls 1

IsFramesFunction · 0.85

Tested by

no test coverage detected