8 void faster::worker::createFDD (
unsigned long int id, fddType type,
size_t size){
10 workerFddBase * newFdd;
11 newFdd =
new workerFdd(
id, type, size);
12 fddList.insert(fddList.end(), newFdd);
16 void faster::worker::readFDDFile(
unsigned long int id, std::string &filename,
size_t size,
size_t offset){
21 workerFdd * newFdd =
new workerFdd(
id, String);
23 if (newFdd == NULL) { std::cerr <<
"\nERROR: Could not find FDD!"; exit(201); }
25 fddList.insert(fddList.end(), newFdd);
28 std::ifstream inFile(filename, std::ifstream::in);
30 if ( ! inFile.good() ){
31 std::cerr <<
"\nERROR: Could not read input File " << filename <<
"\n";
37 inFile.seekg(offset-1, inFile.beg);
40 std::getline( inFile, line );
43 newFdd->insert(0, &line, 0);
48 while(
size_t(inFile.tellg()) < (offset + size) ){
49 std::getline( inFile, line );
54 newFdd->insert(0, &line, 0);
61 comm->sendFDDInfo(newFdd->getSize());