Esempio n. 1
0
 public ItemValueResult(string itemName, Opc.ResultID resultID, string diagnosticInfo) : base(itemName)
 {
     this.m_resultID       = Opc.ResultID.S_OK;
     this.m_diagnosticInfo = null;
     this.ResultID         = resultID;
     this.DiagnosticInfo   = diagnosticInfo;
 }
 public AttributeValueCollection()
 {
     this.m_attributeID    = 0;
     this.m_resultID       = Opc.ResultID.S_OK;
     this.m_diagnosticInfo = null;
     this.m_values         = new ArrayList();
 }
Esempio n. 3
0
 public ItemPropertyCollection()
 {
     this.m_itemName       = null;
     this.m_itemPath       = null;
     this.m_resultID       = Opc.ResultID.S_OK;
     this.m_diagnosticInfo = null;
 }
Esempio n. 4
0
 public Result(IResult result)
 {
     this.m_resultID       = Opc.ResultID.S_OK;
     this.m_diagnosticInfo = null;
     this.ResultID         = result.ResultID;
     this.DiagnosticInfo   = result.DiagnosticInfo;
 }
Esempio n. 5
0
 public Result(Opc.ResultID resultID)
 {
     this.m_resultID       = Opc.ResultID.S_OK;
     this.m_diagnosticInfo = null;
     this.ResultID         = resultID;
     this.DiagnosticInfo   = null;
 }
Esempio n. 6
0
 public ItemValueResult(ItemIdentifier item, Opc.ResultID resultID, string diagnosticInfo) : base(item)
 {
     this.m_resultID       = Opc.ResultID.S_OK;
     this.m_diagnosticInfo = null;
     this.ResultID         = resultID;
     this.DiagnosticInfo   = diagnosticInfo;
 }
 public ItemAttributeCollection()
 {
     this.m_startTime      = DateTime.MinValue;
     this.m_endTime        = DateTime.MinValue;
     this.m_attributes     = new ArrayList();
     this.m_resultID       = Opc.ResultID.S_OK;
     this.m_diagnosticInfo = null;
 }
Esempio n. 8
0
 // Token: 0x0600002A RID: 42 RVA: 0x00002D8B File Offset: 0x00001D8B
 public virtual string GetErrorText(string locale, ResultID resultID)
 {
     if (this.m_server == null)
     {
         throw new NotConnectedException();
     }
     return(this.m_server.GetErrorText((locale == null) ? this.m_locale : locale, resultID));
 }
 public AnnotationValueCollection()
 {
     this.m_values         = new ArrayList();
     this.m_startTime      = DateTime.MinValue;
     this.m_endTime        = DateTime.MinValue;
     this.m_resultID       = Opc.ResultID.S_OK;
     this.m_diagnosticInfo = null;
 }
Esempio n. 10
0
 public ItemValueCollection(ItemIdentifier item) : base(item)
 {
     this.m_startTime      = DateTime.MinValue;
     this.m_endTime        = DateTime.MinValue;
     this.m_values         = new ArrayList();
     this.m_resultID       = Opc.ResultID.S_OK;
     this.m_diagnosticInfo = null;
 }
Esempio n. 11
0
 public EnabledStateResult()
 {
     this.m_qualifiedName      = null;
     this.m_enabled            = false;
     this.m_effectivelyEnabled = false;
     this.m_resultID           = Opc.ResultID.S_OK;
     this.m_diagnosticInfo     = null;
 }
Esempio n. 12
0
 // Token: 0x060000DB RID: 219 RVA: 0x0000497E File Offset: 0x0000397E
 public ResultID(ResultID resultID, long code)
 {
     this.m_name = resultID.Name;
     if (code > 2147483647L)
     {
         code = -(4294967296L - code);
     }
     this.m_code = (int)code;
 }
Esempio n. 13
0
 public ItemResult(ItemResult item) : base((Item)item)
 {
     this.m_resultID       = Opc.ResultID.S_OK;
     this.m_diagnosticInfo = null;
     if (item != null)
     {
         this.ResultID       = item.ResultID;
         this.DiagnosticInfo = item.DiagnosticInfo;
     }
 }
Esempio n. 14
0
        /// <summary>
        /// Initializes a result code with a general result code and a specific result code.
        /// </summary>
        public ResultID(ResultID resultID, long code)
        {
            m_name = resultID.Name;

            if (code > Int32.MaxValue)
            {
                code = -(((long)UInt32.MaxValue) + 1 - code);
            }

            m_code = (int)code;
        }
Esempio n. 15
0
 public ItemPropertyCollection(ItemIdentifier itemID)
 {
     this.m_itemName       = null;
     this.m_itemPath       = null;
     this.m_resultID       = Opc.ResultID.S_OK;
     this.m_diagnosticInfo = null;
     if (itemID != null)
     {
         this.m_itemName = itemID.ItemName;
         this.m_itemPath = itemID.ItemPath;
     }
 }
 public AttributeValueCollection(AttributeValueCollection collection)
 {
     this.m_attributeID    = 0;
     this.m_resultID       = Opc.ResultID.S_OK;
     this.m_diagnosticInfo = null;
     this.m_values         = new ArrayList();
     this.m_values         = new ArrayList(collection.m_values.Count);
     foreach (AttributeValue value2 in collection.m_values)
     {
         this.m_values.Add(value2.Clone());
     }
 }
 public AnnotationValueCollection(AnnotationValueCollection item) : base((Item)item)
 {
     this.m_values         = new ArrayList();
     this.m_startTime      = DateTime.MinValue;
     this.m_endTime        = DateTime.MinValue;
     this.m_resultID       = Opc.ResultID.S_OK;
     this.m_diagnosticInfo = null;
     this.m_values         = new ArrayList(item.m_values.Count);
     foreach (ItemValue value2 in item.m_values)
     {
         this.m_values.Add(value2.Clone());
     }
 }
 public ItemAttributeCollection(ItemAttributeCollection item) : base(item)
 {
     this.m_startTime      = DateTime.MinValue;
     this.m_endTime        = DateTime.MinValue;
     this.m_attributes     = new ArrayList();
     this.m_resultID       = Opc.ResultID.S_OK;
     this.m_diagnosticInfo = null;
     this.m_attributes     = new ArrayList(item.m_attributes.Count);
     foreach (AttributeValueCollection values in item.m_attributes)
     {
         if (values != null)
         {
             this.m_attributes.Add(values.Clone());
         }
     }
 }
Esempio n. 19
0
 // Token: 0x060000DC RID: 220 RVA: 0x000049AC File Offset: 0x000039AC
 public override bool Equals(object target)
 {
     if (target != null && target.GetType() == typeof(ResultID))
     {
         ResultID resultID = (ResultID)target;
         if (resultID.Code != -1 && this.Code != -1)
         {
             return(resultID.Code == this.Code && resultID.Name == this.Name);
         }
         if (resultID.Name != null && this.Name != null)
         {
             return(resultID.Name == this.Name);
         }
     }
     return(false);
 }
Esempio n. 20
0
        /// <summary>
        /// Returns true if the target object is equal to the object.
        /// </summary>
        public override bool Equals(object target)
        {
            if (target != null && target.GetType() == typeof(ResultID))
            {
                ResultID resultID = (ResultID)target;

                // compare by integer if both specify valid integers.
                if (resultID.Code != -1 && Code != -1)
                {
                    return((resultID.Code == Code) && (resultID.Name == Name));
                }

                // compare by name if both specify valid names.
                if (resultID.Name != null && Name != null)
                {
                    return(resultID.Name == Name);
                }
            }

            return(false);
        }
Esempio n. 21
0
 // Token: 0x060000EC RID: 236 RVA: 0x00005339 File Offset: 0x00004339
 public ResultIDException(ResultID result) : base(result.ToString())
 {
     this.m_result = result;
 }
Esempio n. 22
0
 // Token: 0x06000493 RID: 1171 RVA: 0x0000DCF4 File Offset: 0x0000CCF4
 public IdentifiedResult(ItemIdentifier item, ResultID resultID, string diagnosticInfo) : base(item)
 {
     this.ResultID       = resultID;
     this.DiagnosticInfo = diagnosticInfo;
 }
Esempio n. 23
0
 // Token: 0x06000492 RID: 1170 RVA: 0x0000DCD9 File Offset: 0x0000CCD9
 public IdentifiedResult(ItemIdentifier item, ResultID resultID) : base(item)
 {
     this.ResultID = resultID;
 }
Esempio n. 24
0
 // Token: 0x060000EE RID: 238 RVA: 0x00005392 File Offset: 0x00004392
 public ResultIDException(ResultID result, string message, Exception e) : base(result.ToString() + "\r\n" + message, e)
 {
     this.m_result = result;
 }
Esempio n. 25
0
 public ItemResult(ItemIdentifier item) : base(item)
 {
     this.m_resultID       = Opc.ResultID.S_OK;
     this.m_diagnosticInfo = null;
 }
Esempio n. 26
0
 public ItemResult()
 {
     this.m_resultID       = Opc.ResultID.S_OK;
     this.m_diagnosticInfo = null;
 }
Esempio n. 27
0
 // Token: 0x06000490 RID: 1168 RVA: 0x0000DC9C File Offset: 0x0000CC9C
 public IdentifiedResult(string itemName, ResultID resultID) : base(itemName)
 {
     this.ResultID = resultID;
 }
Esempio n. 28
0
 // Token: 0x06000491 RID: 1169 RVA: 0x0000DCB7 File Offset: 0x0000CCB7
 public IdentifiedResult(string itemName, ResultID resultID, string diagnosticInfo) : base(itemName)
 {
     this.ResultID       = resultID;
     this.DiagnosticInfo = diagnosticInfo;
 }
Esempio n. 29
0
 public ItemResult(Item item, Opc.ResultID resultID) : base(item)
 {
     this.m_resultID       = Opc.ResultID.S_OK;
     this.m_diagnosticInfo = null;
     this.ResultID         = resultID;
 }
Esempio n. 30
0
 public ItemValueResult(ItemValue item) : base(item)
 {
     this.m_resultID       = Opc.ResultID.S_OK;
     this.m_diagnosticInfo = null;
 }