internal static void parseFields(IfcActorRole a,List<string> arrFields, ref int ipos)
{
string str = arrFields[ipos++];
if (str != "$")
a.mRole = (string.Compare(str, "COMISSIONINGENGINEER", true) == 0 ? IfcRoleEnum.COMMISSIONINGENGINEER : (IfcRoleEnum)Enum.Parse(typeof(IfcRoleEnum), str.Replace(".", "")));
a.mUserDefinedRole = arrFields[ipos++].Replace("'","");
a.mDescription = arrFields[ipos++].Replace("'","");
}
internal static IfcActorRole Parse(string strDef) { IfcActorRole a = new IfcActorRole(); int ipos = 0; parseFields(a, ParserSTEP.SplitLineFields(strDef), ref ipos); return a; }