1#ifndef BOOLEANSETTING_HH
2#define BOOLEANSETTING_HH
14 [[nodiscard]] std::string_view
getTypeString()
const override;
15 void tabCompletion(std::vector<std::string>& tokens)
const override;
23 [[nodiscard]]
static std::string_view toString(
bool b) {
24 return b ?
"true" :
"false";
std::string_view getTypeString() const override
Returns a string describing the setting type (integer, string, ..) Could be used in a GUI to pick an ...
bool getBoolean() const noexcept
void tabCompletion(std::vector< std::string > &tokens) const override
Complete a partly typed value.
Interpreter & getInterpreter() const
const TclObject & getValue() const final
Gets the current value of this setting as a TclObject.
void setValue(const TclObject &newValue) final
Change the value of this setting to the given value.
bool getBoolean(Interpreter &interp) const
This file implemented 3 utility functions: