-
Notifications
You must be signed in to change notification settings - Fork 921
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge model compiler fixes with latest code.
- Loading branch information
1 parent
a2e8489
commit 1305e94
Showing
5 changed files
with
148 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.IO; | ||
using System.Threading.Tasks; | ||
|
||
namespace Opc.Ua | ||
{ | ||
public partial class NodeState | ||
{ | ||
/// <summary> | ||
/// The specification that defines the node. | ||
/// </summary> | ||
public string Specification { get; set; } | ||
|
||
/// <summary> | ||
/// The documentation for the node that is saved in the NodeSet. | ||
/// </summary> | ||
public string NodeSetDocumentation { get; set; } | ||
} | ||
|
||
public partial class StructureDefinition | ||
{ | ||
/// <summary> | ||
/// The first non-inherited field in the structure definition. | ||
/// </summary> | ||
public int FirstExplicitFieldIndex { get; set; } | ||
} | ||
|
||
public partial class NodeStateCollection | ||
{ | ||
/// <summary> | ||
/// Writes the collection to a stream using the Opc.Ua.Schema.UANodeSet schema. | ||
/// </summary> | ||
public void SaveAsNodeSet2( | ||
ISystemContext context, | ||
Stream ostrm, | ||
Export.ModelTableEntry model, | ||
DateTime lastModified, | ||
bool outputRedundantNames) | ||
{ | ||
Opc.Ua.Export.UANodeSet nodeSet = new Opc.Ua.Export.UANodeSet(); | ||
|
||
if (lastModified != DateTime.MinValue) | ||
{ | ||
nodeSet.LastModified = lastModified; | ||
nodeSet.LastModifiedSpecified = true; | ||
} | ||
|
||
if (model != null) | ||
{ | ||
nodeSet.Models = new Export.ModelTableEntry[] { model }; | ||
} | ||
|
||
for (int ii = 0; ii < s_AliasesToUse.Length; ii++) | ||
{ | ||
nodeSet.AddAlias(context, s_AliasesToUse[ii].Alias, s_AliasesToUse[ii].NodeId); | ||
} | ||
|
||
for (int ii = 0; ii < this.Count; ii++) | ||
{ | ||
nodeSet.Export(context, this[ii], outputRedundantNames); | ||
} | ||
|
||
nodeSet.Write(ostrm); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.