Support modular smoke & cleanup.
Annotate for file src/libsmoke/smokebinding.h
2010-01-10 tobias 1 #ifndef SMOKEBINDING_H
08:49:36 ' 2 #define SMOKEBINDING_H
2009-04-05 tobias 3
15:36:29 ' 4 #include <smoke.h>
' 5
' 6 namespace cl_smoke
' 7 {
' 8
2010-02-18 tobias 9 class Binding : public SmokeBinding
2009-04-05 tobias 10 {
15:36:29 ' 11 public:
2009-06-22 tobias 12 typedef void (*destructed)(void* object);
2009-04-05 tobias 13
2010-02-18 tobias 14 typedef int (*dispatch_method)(Binding* binding, Smoke::Index method,
19:57:00 ' 15 void* object, Smoke::Stack args, int abstract);
' 16
' 17 Binding(Smoke *smoke, destructed destruct, dispatch_method dispatch);
2009-04-05 tobias 18
15:36:29 ' 19 virtual void
2009-06-22 tobias 20 deleted(Smoke::Index classId, void *object);
2009-04-05 tobias 21
15:36:29 ' 22 virtual bool
' 23 callMethod(Smoke::Index method, void* object,
' 24 Smoke::Stack stack, bool abstract);
' 25
' 26 virtual char*
' 27 className(Smoke::Index classId);
' 28
2010-02-19 tobias 29 Smoke*
2010-02-18 tobias 30 get_smoke() const;
2010-02-19 tobias 31
2009-04-05 tobias 32 private:
15:36:29 ' 33 const destructed destruct;
' 34 const dispatch_method dispatch;
' 35 };
' 36
' 37 } // namespace cl_smoke
' 38
2010-01-10 tobias 39 #endif // SMOKEBINDING_H