diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2008-03-11 21:13:53 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2008-03-11 21:13:53 +0000 |
| commit | c12eeb6315500334d0a244d87f8a88936ee04959 (patch) | |
| tree | f8ffc37515b41260d18e4ddf4012b9a7fa9107fe /src/bind/javabind.h | |
| parent | Add more javac stuff. Add target="" attribute to javac (diff) | |
| download | inkscape-c12eeb6315500334d0a244d87f8a88936ee04959.tar.gz inkscape-c12eeb6315500334d0a244d87f8a88936ee04959.zip | |
Got initial JS execution working
(bzr r5057)
Diffstat (limited to 'src/bind/javabind.h')
| -rw-r--r-- | src/bind/javabind.h | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/src/bind/javabind.h b/src/bind/javabind.h index 164110ea6..b20132d03 100644 --- a/src/bind/javabind.h +++ b/src/bind/javabind.h @@ -272,6 +272,11 @@ public: stdOutBuf.clear(); } + virtual void stdOut(int ch) + { + stdOutBuf.push_back((char)ch); + } + virtual String stdErrGet() { return stdErrBuf; @@ -282,14 +287,29 @@ public: stdErrBuf.clear(); } - virtual void stdOut(int ch) + virtual void stdErr(int ch) { - stdOutBuf.push_back((char)ch); + stdErrBuf.push_back((char)ch); } - virtual void stdErr(int ch) + virtual String logGet() { - stdErrBuf.push_back((char)ch); + return logBuf; + } + + virtual void logClear() + { + logBuf.clear(); + } + + virtual void log(int ch) + { + logBuf.push_back((char)ch); + if (ch == '\n' || ch == '\r') + { + g_message(logBuf.c_str()); + logBuf.clear(); + } } @@ -303,6 +323,7 @@ protected: String stdOutBuf; String stdErrBuf; + String logBuf; }; |
