summaryrefslogtreecommitdiff
path: root/lib/ReadJob.cc
diff options
context:
space:
mode:
authorPixel <Pixel>2001-10-29 16:23:12 +0000
committerPixel <Pixel>2001-10-29 16:23:12 +0000
commita259ec553a1d685ebb976ec34eaaf700d24ee0c4 (patch)
treeca310bfa8858bc3d5a1602789ecbe41e9c2ca3dd /lib/ReadJob.cc
parent2e5bed84841f33ff28dd95b77b555720c875a286 (diff)
More tasking implementation
Diffstat (limited to 'lib/ReadJob.cc')
-rw-r--r--lib/ReadJob.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/ReadJob.cc b/lib/ReadJob.cc
new file mode 100644
index 0000000..9f4e084
--- /dev/null
+++ b/lib/ReadJob.cc
@@ -0,0 +1,16 @@
+#include "ReadJob.h"
+
+ReadJob::ReadJob(Handle & as, Handle & ad) : s(as), d(ad) { }
+
+ReadJob::~ReadJob() { }
+
+int ReadJob::Do() {
+ int r;
+ String buff;
+
+ while (!s.IsClosed()) {
+ buff << s;
+ buff >> d;
+ if (buff == "") return TASK_DONE;
+ }
+}