}
//set fileroot
- if(globaldata->getFileRoot() != ""){
- fileroot = globaldata->getFileRoot();
- }
- else{
- fileroot = getRootName(globaldata->getDistFile());
- }
+ fileroot = getRootName(globaldata->getListFile());
//open output list files
for (i=0; i<groupMap->getNumGroups(); i++) {//opens an output file for each group
read = new ReadPhilFile(globaldata->inputFileName);
read->read(&*globaldata);
input = globaldata->ginput;
- //list = input->getListVector();
- list = globaldata->glist;
+ list = globaldata->gSharedList;
//read in group map info.
groupMap = new GroupMap(globaldata->getGroupFile());
int i;
//create new list vectors to fill with parsed data
for (i=0; i<groupMap->getNumGroups(); i++) {
- groupOfLists[groupMap->namesOfGroups[i]] = new ListVector();
+ groupOfLists[groupMap->namesOfGroups[i]] = new SharedListVector();
}
//parses and sets each groups listvector
groupOfLists[groupMap->namesOfGroups[i]]->print(*(filehandles[groupMap->namesOfGroups[i]]));
groupOfLists[groupMap->namesOfGroups[i]]->clear();
}
- list = input->getListVector();
+ list = input->getSharedListVector();
}
+
+ //set groupmap for .shared commands
+ globaldata->gGroupmap = groupMap;
+
return 0;
}
catch(exception& e) {
ParseListCommand::~ParseListCommand(){
delete list;
- delete groupMap;
delete input;
delete read;
}