summaryrefslogtreecommitdiff
path: root/lib/ReadJob.cc
blob: 9f4e08471a643b41f9b2c40f01b68dcc20bcb20b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
    }
}