Go to the documentation of this file. 1 #ifndef STRINGSETTING_HH
2 #define STRINGSETTING_HH
15 [[nodiscard]] std::string_view
getTypeString()
const override;
Like std::string_view, but with the extra guarantee that it refers to a zero-terminated string.
void setValue(const TclObject &newValue) final
Change the value of this setting to the given value.
std::string_view getTypeString() const override
Returns a string describing the setting type (integer, string, ..) Could be used in a GUI to pick an ...
const TclObject & getValue() const final
Gets the current value of this setting as a TclObject.
StringSetting(CommandController &commandController, std::string_view name, static_string_view description, std::string_view initialValue, SaveSetting save=SAVE)
zstring_view getString() const noexcept
void setString(std::string_view str)
This file implemented 3 utility functions:
zstring_view getString() const