Ardour  9.0-pre0-582-g084a23a80d
LuaCallback Class Reference

#include <luainstance.h>

Inheritance diagram for LuaCallback:
[legend]

Public Member Functions

 LuaCallback (ARDOUR::Session *, const std::string &, const std::string &, const ActionHook &, const ARDOUR::LuaScriptParamList &)
 
 LuaCallback (ARDOUR::Session *, XMLNode &node)
 
 ~LuaCallback ()
 
XMLNodeget_state () const
 
void set_session (ARDOUR::Session *)
 
const PBD::IDid () const
 
const std::string & name () const
 
ActionHook signals () const
 
bool lua_slot (std::string &, std::string &, ActionHook &, ARDOUR::LuaScriptParamList &)
 
- Public Member Functions inherited from ARDOUR::SessionHandlePtr
 SessionHandlePtr (ARDOUR::Session *s)
 
 SessionHandlePtr ()
 
virtual ~SessionHandlePtr ()
 
virtual ARDOUR::Sessionsession () const
 

Public Attributes

PBD::Signal< void()> drop_callback
 

Protected Member Functions

void session_going_away ()
 

Private Member Functions

void reconnect ()
 
template<class T >
void reconnect_object (T)
 
void init ()
 
template<typename T , typename... C>
void connect (enum LuaSignal::LuaSignal, T, PBD::Signal< void(C...)> *)
 
template<typename T , typename... C>
void proxy (enum LuaSignal::LuaSignal, T, C...)
 

Private Attributes

LuaState lua
 
PBD::ID _id
 
std::string _name
 
ActionHook _signals
 
luabridge::LuaRef * _lua_add
 
luabridge::LuaRef * _lua_get
 
luabridge::LuaRef * _lua_call
 
luabridge::LuaRef * _lua_save
 
luabridge::LuaRef * _lua_load
 
PBD::ScopedConnectionList _connections
 

Additional Inherited Members

- Protected Attributes inherited from ARDOUR::SessionHandlePtr
ARDOUR::Session_session
 
PBD::ScopedConnectionList _session_connections
 

Detailed Description

Definition at line 48 of file luainstance.h.

Constructor & Destructor Documentation

◆ LuaCallback() [1/2]

LuaCallback::LuaCallback ( ARDOUR::Session ,
const std::string &  ,
const std::string &  ,
const ActionHook ,
const ARDOUR::LuaScriptParamList  
)

◆ LuaCallback() [2/2]

LuaCallback::LuaCallback ( ARDOUR::Session ,
XMLNode node 
)

◆ ~LuaCallback()

LuaCallback::~LuaCallback ( )

Member Function Documentation

◆ connect()

template<typename T , typename... C>
void LuaCallback::connect ( enum LuaSignal::LuaSignal  ,
,
PBD::Signal< void(C...)> *   
)
private

◆ get_state()

XMLNode& LuaCallback::get_state ( ) const

◆ id()

const PBD::ID& LuaCallback::id ( ) const
inline

Definition at line 58 of file luainstance.h.

◆ init()

void LuaCallback::init ( )
private

◆ lua_slot()

bool LuaCallback::lua_slot ( std::string &  ,
std::string &  ,
ActionHook ,
ARDOUR::LuaScriptParamList  
)

◆ name()

const std::string& LuaCallback::name ( ) const
inline

Definition at line 59 of file luainstance.h.

◆ proxy()

template<typename T , typename... C>
void LuaCallback::proxy ( enum LuaSignal::LuaSignal  ,
,
C...   
)
private

◆ reconnect()

void LuaCallback::reconnect ( )
private

◆ reconnect_object()

template<class T >
void LuaCallback::reconnect_object ( )
private

◆ session_going_away()

void LuaCallback::session_going_away ( )
protectedvirtual

Reimplemented from ARDOUR::SessionHandlePtr.

◆ set_session()

void LuaCallback::set_session ( ARDOUR::Session )
virtual

Reimplemented from ARDOUR::SessionHandlePtr.

◆ signals()

ActionHook LuaCallback::signals ( ) const
inline

Definition at line 60 of file luainstance.h.

Member Data Documentation

◆ _connections

PBD::ScopedConnectionList LuaCallback::_connections
private

Definition at line 84 of file luainstance.h.

◆ _id

PBD::ID LuaCallback::_id
private

Definition at line 70 of file luainstance.h.

◆ _lua_add

luabridge::LuaRef* LuaCallback::_lua_add
private

Definition at line 78 of file luainstance.h.

◆ _lua_call

luabridge::LuaRef* LuaCallback::_lua_call
private

Definition at line 80 of file luainstance.h.

◆ _lua_get

luabridge::LuaRef* LuaCallback::_lua_get
private

Definition at line 79 of file luainstance.h.

◆ _lua_load

luabridge::LuaRef* LuaCallback::_lua_load
private

Definition at line 82 of file luainstance.h.

◆ _lua_save

luabridge::LuaRef* LuaCallback::_lua_save
private

Definition at line 81 of file luainstance.h.

◆ _name

std::string LuaCallback::_name
private

Definition at line 71 of file luainstance.h.

◆ _signals

ActionHook LuaCallback::_signals
private

Definition at line 72 of file luainstance.h.

◆ drop_callback

PBD::Signal<void()> LuaCallback::drop_callback

Definition at line 62 of file luainstance.h.

◆ lua

LuaState LuaCallback::lua
private

Definition at line 68 of file luainstance.h.


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