Free Electron
LuaBind.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __lua_LuaBind_h__
8 #define __lua_LuaBind_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /** use LuaExec instead?
16  @copydoc LuaBind_info
17  */
18 class LuaBind : public HandlerI, public Initialize<LuaBind>
19 {
20  public:
21  LuaBind(void);
22 virtual ~LuaBind(void);
23  void initialize(void);
24 
25 virtual void bind( sp<SignalerI> spSignaler,
26  sp<Layout> l_sig);
27 virtual void handle( Record &r_sig);
28 
29  private:
30  lua_State *m_pLuaState;
31  String m_chunk;
32  sp<LuaContext> m_spContext;
33 };
34 
35 } /* namespace ext */
36 } /* namespace fe */
37 
38 #endif /* __lua_LuaBind_h__ */
39 
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
use LuaExec instead?
Definition: LuaBind.h:18
Interface to handle signals from an SignalerI.
Definition: HandlerI.h:22
Automatically reference-counted string container.
Definition: String.h:128
Reference to an instance of a Layout.
Definition: RecordSB.h:35