15 std::string_view name,
20 controller, name, description, std::string_view{},
22 , callbackSetting(*callbackSetting2)
23 , useCliComm(useCliComm_)
28 : callbackSetting(setting)
46 return executeCommon(command);
55 return executeCommon(command);
64 return executeCommon(command);
73 return executeCommon(command);
82 return executeCommon(command);
89 }
catch (CommandException& e) {
91 "Error executing callback function \"",
92 getSetting().getFullName(),
"\": ", e.getMessage());
97 std::cerr << message <<
'\n';
void printWarning(std::string_view message)
virtual CliComm & getCliComm()=0
const TclObject & getValue() const final
Gets the current value of this setting as a TclObject.
Interpreter & getInterpreter() const
CommandController & getCommandController() const
TclObject getValue() const
StringSetting & getSetting() const
TclCallback(CommandController &controller, std::string_view name, static_string_view description, bool useCliComm=true, bool save=true)
TclObject executeCommand(Interpreter &interp, bool compile=false)
Interpret this TclObject as a command and execute it.
This file implemented 3 utility functions:
TclObject makeTclList(Args &&... args)
std::string strCat(Ts &&...ts)