diff options
author | Pixel <Pixel> | 2001-10-29 16:23:12 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-10-29 16:23:12 +0000 |
commit | a259ec553a1d685ebb976ec34eaaf700d24ee0c4 (patch) | |
tree | ca310bfa8858bc3d5a1602789ecbe41e9c2ca3dd /lib/ReadJob.cc | |
parent | 2e5bed84841f33ff28dd95b77b555720c875a286 (diff) |
More tasking implementation
Diffstat (limited to 'lib/ReadJob.cc')
-rw-r--r-- | lib/ReadJob.cc | 16 |
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; + } +} |