コード例 #1
0
ファイル: Variant.cs プロジェクト: RoboPlusPlus/Csharp
 public Variant(ExtensionObject value)
 {
     this.Value           = value;
     this.Type            = VariantType.ExtensionObject;
     this.ArrayDimensions = null;
 }
コード例 #2
0
        public virtual void Decode(IDecoder decoder) {
            decoder.PushNamespace("http://opcfoundation.org/UA/2008/02/Types.xsd");
			Timestamp = decoder.ReadDateTime("Timestamp");
			RequestHandle = decoder.ReadUInt32("RequestHandle");
			ServiceResult = decoder.ReadStatusCode("ServiceResult");
			ServiceDiagnostics = decoder.ReadDiagnosticInfo("ServiceDiagnostics");
			StringTable = decoder.ReadStringArray("StringTable");
			AdditionalHeader = decoder.ReadExtensionObject("AdditionalHeader");
            decoder.PopNamespace();
        }
コード例 #3
0
 public Variant(ExtensionObject[] value)
 {
     this.Value = value;
     this.Type = VariantType.ExtensionObject;
     this.ArrayDimensions = new int[value.Rank];
     for (int i = 0; i < value.Rank; i++)
     {
         this.ArrayDimensions[i] = value.GetLength(i);
     }
 }
コード例 #4
0
        public virtual void Decode(IDecoder decoder) {
            decoder.PushNamespace("http://opcfoundation.org/UA/2008/02/Types.xsd");
			AuthenticationToken = decoder.ReadNodeId("AuthenticationToken");
			Timestamp = decoder.ReadDateTime("Timestamp");
			RequestHandle = decoder.ReadUInt32("RequestHandle");
			ReturnDiagnostics = decoder.ReadUInt32("ReturnDiagnostics");
			AuditEntryId = decoder.ReadString("AuditEntryId");
			TimeoutHint = decoder.ReadUInt32("TimeoutHint");
			AdditionalHeader = decoder.ReadExtensionObject("AdditionalHeader");
            decoder.PopNamespace();
        }
コード例 #5
0
 public Variant(ExtensionObject value)
 {
     this.Value = value;
     this.Type = VariantType.ExtensionObject;
     this.ArrayDimensions = null;
 }