コード例 #1
0
ファイル: IFC O JSON.cs プロジェクト: wsy8648/GeometryGymIFC
 protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed)
 {
     base.setJSON(obj, host, processed);
     obj["OwningUser"]        = OwningUser.getJson(this, processed);
     obj["OwningApplication"] = OwningApplication.getJson(this, processed);
     if (mState != IfcStateEnum.NA)
     {
         obj["State"] = mState.ToString();
     }
     obj["ChangeAction"] = mChangeAction.ToString();
     if (mLastModifiedDate > 0)
     {
         obj["LastModifiedDate"] = mLastModifiedDate;
     }
     if (mLastModifyingUser > 0)
     {
         obj["LastModifyingUser"] = LastModifyingUser.getJson(this, processed);
     }
     if (mLastModifyingApplication > 0)
     {
         obj["LastModifyingApplication"] = LastModifyingApplication.getJson(this, processed);
     }
     if (mCreationDate > 0)
     {
         obj["CreationDate"] = mCreationDate;
     }
 }
コード例 #2
0
 protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
 {
     base.setJSON(obj, host, options);
     obj["OwningUser"]        = OwningUser.getJson(this, options);
     obj["OwningApplication"] = OwningApplication.getJson(this, options);
     if (mState != IfcStateEnum.NOTDEFINED)
     {
         obj["State"] = mState.ToString();
     }
     obj["ChangeAction"] = mChangeAction.ToString();
     if (mLastModifiedDate > 0)
     {
         obj["LastModifiedDate"] = mLastModifiedDate;
     }
     if (mLastModifyingUser != null)
     {
         obj["LastModifyingUser"] = LastModifyingUser.getJson(this, options);
     }
     if (mLastModifyingApplication != null)
     {
         obj["LastModifyingApplication"] = LastModifyingApplication.getJson(this, options);
     }
     if (mCreationDate > 0)
     {
         obj["CreationDate"] = mCreationDate;
     }
 }