summaryrefslogtreecommitdiff
path: root/lib/ReadJob.cc
blob: bd63377e09ca9f70ffe614c3f3e22666c47e6b8a (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()) {
	s >> buff;
	d << buff;
	if (buff == "") return TASK_DONE;
    }
}