diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2006-08-27 14:46:38 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2006-08-27 14:46:38 +0000 |
| commit | 32bc095e622ccbad400d3c661ad8e7a9fb967dc4 (patch) | |
| tree | 0d93d193d32a1bf53d1e389ddf51a0ae371aa106 /src/dom/jsengine.h | |
| parent | domexception enums should be class scoped (diff) | |
| download | inkscape-32bc095e622ccbad400d3c661ad8e7a9fb967dc4.tar.gz inkscape-32bc095e622ccbad400d3c661ad8e7a9fb967dc4.zip | |
provide skeleton wrappers for all DOM core classes. add content later
(bzr r1644)
Diffstat (limited to 'src/dom/jsengine.h')
| -rw-r--r-- | src/dom/jsengine.h | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/src/dom/jsengine.h b/src/dom/jsengine.h index 1390afe7e..8b775c98b 100644 --- a/src/dom/jsengine.h +++ b/src/dom/jsengine.h @@ -41,45 +41,47 @@ namespace dom { /** - * + * Encapsulate a Spidermonkey JavaScript interpreter. Init classes, then + * wrap around any objects that are needed. */ class JavascriptEngine { public: /** - * + * Constructor */ JavascriptEngine() { init(); } /** - * + * Copy constructor */ JavascriptEngine(const JavascriptEngine &other) { assign(other); } /** - * + * Assignment operator */ JavascriptEngine &operator=(const JavascriptEngine &other) { assign(other); return *this; } /** - * + * Destructor */ - bool startup(); + virtual ~JavascriptEngine() + {} /** - * + * Startup the javascript engine */ - bool shutdown(); + bool startup(); /** - * + * Shutdown the javascript engine */ - virtual ~JavascriptEngine() - {} + bool shutdown(); + private: @@ -99,11 +101,18 @@ private: } /** - * + * Bind with the basic DOM classes */ bool createClasses(); + /** + * Ouput a printf-formatted error message + */ void error(char *fmt, ...); + + /** + * Ouput a printf-formatted error message + */ void trace(char *fmt, ...); JSRuntime *rt; |
