1
0

rootobjcontroller.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef __ROOTSCRIPTOBJECTCONTROLLER_IMPL_H
  2. #define __ROOTSCRIPTOBJECTCONTROLLER_IMPL_H
  3. #include <api/script/objcontroller.h>
  4. /*<?<autoheader/>*/
  5. class ScriptObject;
  6. class ScriptObjectController;
  7. /*?>*/
  8. class RootScriptObjectController : public ScriptObjectControllerI
  9. {
  10. public:
  11. virtual const wchar_t *getClassName();
  12. virtual const wchar_t *getAncestorClassName();
  13. virtual ScriptObjectController *getAncestorController() { return NULL; }
  14. virtual int getNumFunctions();
  15. virtual const function_descriptor_struct *getExportedFunctions();
  16. virtual GUID getClassGuid();
  17. virtual ScriptObject *instantiate();
  18. virtual void destroy(ScriptObject *o);
  19. virtual void deencapsulate(void *o);
  20. virtual void *encapsulate(ScriptObject *o);
  21. private:
  22. static function_descriptor_struct exportedFunction[];
  23. };
  24. class RootObject_ScriptMethods {
  25. public:
  26. static scriptVar getClassName(SCRIPT_FUNCTION_PARAMS, ScriptObject *o);
  27. static scriptVar onNotify(SCRIPT_FUNCTION_PARAMS, ScriptObject *on, scriptVar s, scriptVar s2, scriptVar i1, scriptVar i2);
  28. static scriptVar notify(SCRIPT_FUNCTION_PARAMS, ScriptObject *on, scriptVar s, scriptVar s2, scriptVar i1, scriptVar i2);
  29. };
  30. extern RootScriptObjectController *rootScriptObjectController;
  31. #endif // __ROOTSCRIPTOBJECTCONTROLLER_IMPL_H