public IfcOwnerHistory(IfcPersonAndOrganization po, IfcApplication app, IfcChangeActionEnum ca) : base(po.mDatabase) { mOwningUser = po.mIndex; mOwningApplication = app.mIndex; mState = IfcStateEnum.NA; mChangeAction = ca; TimeSpan ts = DateTime.Now.ToUniversalTime() - new DateTime(1970, 1, 1, 0, 0, 0); mCreationDate = (int)ts.TotalSeconds; mLastModifiedDate = (int)ts.TotalSeconds; }
internal IfcOwnerHistory(IfcPersonAndOrganization po, IfcApplication app, IfcChangeActionEnum ca) : base(po.mDatabase) { mOwningUser = po.mIndex; mOwningApplication = app.mIndex; mState = IfcStateEnum.NA; mChangeAction = ca; TimeSpan ts = DateTime.Now - new DateTime(1970, 1, 1, 0, 0, 0); //if(ca == IfcChangeActionEnum.ADDED) mCreationDate = (int)ts.TotalSeconds; //if (ca != IfcChangeActionEnum.NOTDEFINED) mLastModifiedDate = (int)ts.TotalSeconds; }
internal static IfcPersonAndOrganization Parse(string strDef) { IfcPersonAndOrganization c = new IfcPersonAndOrganization(); int ipos = 0; parseFields(c, ParserSTEP.SplitLineFields(strDef), ref ipos); return c; }
internal static void parseFields(IfcPersonAndOrganization c, List<string> arrFields, ref int ipos) { c.mThePerson = ParserSTEP.ParseLink(arrFields[ipos++]); c.mTheOrganization = ParserSTEP.ParseLink(arrFields[ipos++]); c.mRoles = arrFields[ipos++]; }
internal IfcPersonAndOrganization(IfcPersonAndOrganization i) : base() { mThePerson = i.mThePerson; mTheOrganization = i.mTheOrganization; mRoles = i.mRoles; }