openMSX
ProxySetting.hh
Go to the documentation of this file.
1#ifndef PROXYSETTING_HH
2#define PROXYSETTING_HH
3
4#include "Setting.hh"
5
6namespace openmsx {
7
8class Reactor;
9
10class ProxySetting final : public BaseSetting
11{
12public:
13 ProxySetting(Reactor& reactor, const TclObject& name);
14
15 void setValue(const TclObject& value) override;
16 [[nodiscard]] std::string_view getTypeString() const override;
17 [[nodiscard]] std::string_view getDescription() const override;
18 [[nodiscard]] const TclObject& getValue() const override;
19 [[nodiscard]] std::optional<TclObject> getOptionalValue() const override;
20 [[nodiscard]] TclObject getDefaultValue() const override;
21 void setValueDirect(const TclObject& value) override;
22 void tabCompletion(std::vector<std::string>& tokens) const override;
23 [[nodiscard]] bool needLoadSave() const override;
24 [[nodiscard]] bool needTransfer() const override;
25 void additionalInfo(TclObject& result) const override;
26
27private:
28 [[nodiscard]] BaseSetting* getSetting();
29 [[nodiscard]] const BaseSetting* getSetting() const;
30
31private:
32 Reactor& reactor;
33};
34
35} // namespace openmsx
36
37#endif
bool needLoadSave() const override
Does this setting need to be loaded or saved (settings.xml).
void additionalInfo(TclObject &result) const override
Helper method for info().
std::optional< TclObject > getOptionalValue() const override
Like getValue(), but in case of error returns an empty optional instead of throwing an exception.
TclObject getDefaultValue() const override
Get the default value of this setting.
void tabCompletion(std::vector< std::string > &tokens) const override
Complete a partly typed value.
void setValueDirect(const TclObject &value) override
Similar to setValue(), but doesn't trigger Tcl traces.
const TclObject & getValue() const override
Get current value as a TclObject.
void setValue(const TclObject &value) override
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 ...
std::string_view getDescription() const override
pure virtual methods ///
bool needTransfer() const override
Does this setting need to be transfered on reverse.
Contains the main loop of openMSX.
Definition Reactor.hh:75
This file implemented 3 utility functions:
Definition Autofire.cc:11