internal IfcWorkCalendar(DatabaseIfc m, List<IfcWorkTime> working, List<IfcWorkTime> exception, IfcWorkCalendarTypeEnum type, IfcProject prj) : base(m) { if (working != null) mWorkingTimes = working.ConvertAll(x => x.mIndex); if (exception != null) mExceptionTimes = exception.ConvertAll(x => x.mIndex); mPredefinedType = type; if (prj != null) prj.AddDeclared(this); }
internal IfcCostSchedule(DatabaseIfc m, IfcCostScheduleTypeEnum t, string status, DateTime submitted, IfcProject prj) : base(m) { mPredefinedType = t; if (!string.IsNullOrEmpty(status)) mStatus = status.Replace("'", ""); if (submitted != DateTime.MinValue) mSubmittedOn = (m.mSchema == Schema.IFC2x3 ? "#" + new IfcDateAndTime(new IfcCalendarDate(m,submitted.Day,submitted.Month,submitted.Year),new IfcLocalTime(m,submitted.Hour,submitted.Minute,submitted.Second)).mIndex : IfcDateTime.Convert( submitted));// IfcDate.convert(submitted); mUpdateDate = IfcDate.convert(DateTime.Now); if (prj != null) prj.AddDeclared(this); }
internal static void parseFields(IfcProject p, List<string> arrFields, ref int ipos) { IfcContext.parseFields(p, arrFields, ref ipos); }
internal static IfcProject Parse(string strDef) { IfcProject p = new IfcProject(); int ipos = 0; parseFields(p, ParserSTEP.SplitLineFields(strDef), ref ipos); return p; }
internal IfcProject(IfcProject o) : base(o) { }