diff options
Diffstat (limited to 'src/uscxml/plugins/datamodel/ecmascript/JavaScriptCore/dom/JSCDOM.h')
-rw-r--r-- | src/uscxml/plugins/datamodel/ecmascript/JavaScriptCore/dom/JSCDOM.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/uscxml/plugins/datamodel/ecmascript/JavaScriptCore/dom/JSCDOM.h b/src/uscxml/plugins/datamodel/ecmascript/JavaScriptCore/dom/JSCDOM.h new file mode 100644 index 0000000..0986408 --- /dev/null +++ b/src/uscxml/plugins/datamodel/ecmascript/JavaScriptCore/dom/JSCDOM.h @@ -0,0 +1,27 @@ +#ifndef JSCDOM_H_1RC5LCG8 +#define JSCDOM_H_1RC5LCG8 + +#include "uscxml/Interpreter.h" +#include <JavaScriptCore/JavaScriptCore.h> + +#define JSC_DESTRUCTOR(type) \ +static void jsDestructor(JSObjectRef object) { \ +type* thing = static_cast<type*>(JSObjectGetPrivate(object)); \ +delete thing; \ +} + +namespace uscxml { + +class JSCDOM { +public: + JSCDOM(); + virtual ~JSCDOM() { }; + + Interpreter* interpreter; + Arabica::XPath::XPath<std::string>* xpath; +}; + +} + + +#endif /* end of include guard: JSCDOM_H_1RC5LCG8 */ |