Add support for alternate LineGroup file

This commit is contained in:
wandererfan
2018-07-20 20:38:25 -04:00
committed by Yorik van Havre
parent 5a39efa771
commit 8ba4cd1058
3 changed files with 32 additions and 8 deletions

View File

@@ -180,6 +180,9 @@ LineGroup* LineGroup::lineGroupFactory(std::string groupName)
std::string defaultFileName = defaultDir + "LineGroup.csv";
std::string lgFileName = hGrp->GetASCII("LineGroupFile",defaultFileName.c_str());
if (lgFileName.empty()) {
lgFileName = defaultFileName;
}
std::string lgRecord = LineGroup::getRecordFromFile(lgFileName, groupName);