1
0

api_makix.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. // ----------------------------------------------------------------------------
  2. // Generated by InterfaceFactory [Fri Oct 01 02:49:40 1999]
  3. //
  4. // File : api_makix.h
  5. // Class : api_maki
  6. // class layer : Dispatchable Receiver
  7. // ----------------------------------------------------------------------------
  8. #ifndef __API_MAKIX_H
  9. #define __API_MAKIX_H
  10. #include "api_maki.h"
  11. class ScriptObject;
  12. class ScriptObjectController;
  13. // ----------------------------------------------------------------------------
  14. class api_makiX : public api_maki {
  15. protected:
  16. api_makiX() {}
  17. public:
  18. virtual void maki_pushObject(void *o)=0;
  19. virtual void maki_pushInt(int i)=0;
  20. virtual void maki_pushBoolean(int b)=0;
  21. virtual void maki_pushFloat(float f)=0;
  22. virtual void maki_pushDouble(double d)=0;
  23. virtual void maki_pushString(const wchar_t *s)=0;
  24. virtual void maki_pushVoid()=0;
  25. virtual void maki_pushAny(scriptVar v)=0;
  26. virtual void *maki_popObject()=0;
  27. virtual int maki_popInt()=0;
  28. virtual bool maki_popBoolean()=false;
  29. virtual float maki_popFloat()=0;
  30. virtual double maki_popDouble()=0;
  31. virtual const wchar_t *maki_popString()=0;
  32. virtual scriptVar maki_popAny()=0;
  33. virtual void maki_popDiscard()=0;
  34. virtual const wchar_t *maki_getFunction(int dlfid, int *nparams, ScriptObjectController **p)=0;
  35. virtual int maki_addDlfRef(ScriptObjectController *o, const wchar_t *function_name, void *host)=0;
  36. virtual void maki_addDlfClassRef(ScriptObjectController *o, void *host)=0;
  37. virtual void maki_remDlfRef(void *host)=0;
  38. virtual scriptVar maki_callFunction(ScriptObject *o, int dlfid, scriptVar **params)=0;
  39. virtual scriptVar maki_triggerEvent(ScriptObject *o, int dlfid, int np, int scriptid = -1)=0;
  40. virtual int maki_getScriptInt(scriptVar v)=0;
  41. virtual bool maki_getScriptBoolean(scriptVar v)=false;
  42. virtual float maki_getScriptFloat(scriptVar v)=0;
  43. virtual double maki_getScriptDouble(scriptVar v)=0;
  44. virtual const wchar_t *maki_getScriptString(scriptVar v)=0;
  45. virtual ScriptObject *maki_getScriptObject(scriptVar v)=0;
  46. virtual scriptVar maki_updateDlf(maki_cmd *cmd, int *dlfid, int *linkcount)=0;
  47. virtual ScriptObject *maki_instantiate(GUID classguid)=0;
  48. virtual void maki_destroy(ScriptObject *o)=0;
  49. virtual void *maki_encapsulate(GUID classguid, ScriptObject *o)=0;
  50. virtual void maki_deencapsulate(GUID classguid, void *o)=0;
  51. virtual ScriptObjectController *maki_getController(GUID scriptclass)=0;
  52. virtual int maki_createOrphan(int type)=0;
  53. virtual void maki_killOrphan(int id)=0;
  54. virtual void maki_setObjectAtom(const wchar_t *atomname, ScriptObject *object)=0;
  55. virtual ScriptObject *maki_getObjectAtom(const wchar_t *atomname)=0;
  56. #ifdef WASABI_COMPILE_WND
  57. virtual ScriptObject *maki_findObject(const wchar_t *name)=0;
  58. #endif
  59. virtual void vcpu_addScriptObject(ScriptObject *o)=0;
  60. virtual void vcpu_removeScriptObject(ScriptObject *o)=0;
  61. virtual int vcpu_getCacheCount()=0;
  62. virtual int vcpu_isValidScriptId(int id)=0;
  63. virtual int vcpu_mapVarId(int varid, int scriptid)=0;
  64. virtual int vcpu_getUserAncestorId(int varid, int scriptid)=0;
  65. virtual int vcpu_getNumEvents()=0;
  66. virtual int vcpu_getEvent(int event, int *dlf, int *script, int *var)=0;
  67. virtual int vcpu_getComplete()=0;
  68. virtual void vcpu_setComplete()=0;
  69. virtual void vcpu_resetComplete()=0;
  70. virtual const wchar_t *vcpu_getClassName(int vcpuid, int localclassid)=0;
  71. protected:
  72. RECVS_DISPATCH;
  73. };
  74. #endif // __API_MAKIX_H