// short 4 = show summary tasks
// short int at byte 6 for number of clauses
//Integer groupUniqueID = Integer.valueOf(MPPUtility.getInt(groupVarData, 0));
boolean showSummaryTasks = (MPPUtility.getShort(groupVarData, 4) != 0);
Group group = new Group(groupID, groupName, showSummaryTasks);
file.addGroup(group);
int clauseCount = MPPUtility.getShort(groupVarData, 10);
int offset = 12;
for (int clauseIndex = 0; clauseIndex < clauseCount; clauseIndex++)
{
if (offset + 71 > groupVarData.length)
{
break;
}
//System.out.println("Clause " + clauseIndex);
//System.out.println(MPPUtility.hexdump(groupVarData, offset, 71, false, 16, ""));
GroupClause clause = new GroupClause();
group.addGroupClause(clause);
int fieldID = MPPUtility.getInt(groupVarData, offset);
FieldType type = FieldTypeUtility.getInstance14(fieldID);
clause.setField(type);