openMSX
Public Member Functions | Friends | List of all members
openmsx::TclCallback Class Reference

#include <TclCallback.hh>

Public Member Functions

 TclCallback (CommandController &controller, std::string_view name, static_string_view description, std::string_view defaultValue, Setting::Save saveSetting, bool isMessageCallback=false)
 
 TclCallback (StringSetting &setting)
 
TclObject execute () const
 
TclObject execute (int arg1) const
 
TclObject execute (int arg1, int arg2) const
 
TclObject execute (int arg1, std::string_view arg2) const
 
TclObject execute (std::string_view arg1, std::string_view arg2) const
 
TclObject getValue () const
 
StringSettinggetSetting () const
 

Friends

class TclCallbackMessages
 

Detailed Description

Definition at line 14 of file TclCallback.hh.

Constructor & Destructor Documentation

◆ TclCallback() [1/2]

openmsx::TclCallback::TclCallback ( CommandController controller,
std::string_view  name,
static_string_view  description,
std::string_view  defaultValue,
Setting::Save  saveSetting,
bool  isMessageCallback = false 
)

Definition at line 13 of file TclCallback.cc.

◆ TclCallback() [2/2]

openmsx::TclCallback::TclCallback ( StringSetting setting)
explicit

Definition at line 28 of file TclCallback.cc.

Member Function Documentation

◆ execute() [1/5]

TclObject openmsx::TclCallback::execute ( ) const

◆ execute() [2/5]

TclObject openmsx::TclCallback::execute ( int  arg1) const

Definition at line 48 of file TclCallback.cc.

References getValue(), and openmsx::makeTclList().

◆ execute() [3/5]

TclObject openmsx::TclCallback::execute ( int  arg1,
int  arg2 
) const

Definition at line 57 of file TclCallback.cc.

References getValue(), and openmsx::makeTclList().

◆ execute() [4/5]

TclObject openmsx::TclCallback::execute ( int  arg1,
std::string_view  arg2 
) const

Definition at line 66 of file TclCallback.cc.

References getValue(), and openmsx::makeTclList().

◆ execute() [5/5]

TclObject openmsx::TclCallback::execute ( std::string_view  arg1,
std::string_view  arg2 
) const

Definition at line 75 of file TclCallback.cc.

References getValue(), and openmsx::makeTclList().

◆ getSetting()

StringSetting & openmsx::TclCallback::getSetting ( ) const
inline

◆ getValue()

TclObject openmsx::TclCallback::getValue ( ) const

Definition at line 34 of file TclCallback.cc.

References getSetting(), and openmsx::Setting::getValue().

Referenced by execute(), execute(), execute(), execute(), and execute().

Friends And Related Symbol Documentation

◆ TclCallbackMessages

friend class TclCallbackMessages
friend

Definition at line 17 of file TclCallback.hh.


The documentation for this class was generated from the following files: