Esempio n. 1
0
 private static void IninializeTableAttributeRow(TDMSTableAttributeRow row,
                                                 Tuple <string, string, string> names,
                                                 Tuple <string, string, TDMSObject> values)
 {
     row.Attributes[names.Item1].Value = values.Item1;
     row.Attributes[names.Item2].Value = values.Item2;
     row.Attributes[names.Item3].Value = values.Item3;
 }
 /// <summary>
 /// Invokes TdmsAttribute by AttributeDefName from TDMSTableAttributeRow in silent mode
 /// </summary>
 /// <param name="row">TDMSTableAttributeRow</param>
 /// <param name="name">AttributeDefName to be invoked</param>
 /// <returns>TDMSAttribute</returns>
 public static TDMSAttribute GetAttributeSilent(TDMSTableAttributeRow row, string name)
 {
     try
     {
         return(row.Attributes.GetItems().FirstOrDefault(a => a.AttributeDefName.Equals(name)));
     }
     catch (Exception)
     {
         return(null);
     }
 }
Esempio n. 3
0
        private TarFactory(TDMSTableAttributeRow row,
                           NppMaps nppMaps)
        {
            this.row     = row;
            this.nppMaps = nppMaps;

            setAttributes = new TarFactoryAttributes(row,
                                                     "A_DocRef");
            ecaAttributes = new TarFactoryAttributes(row,
                                                     "A_CorrectAct");
        }
        private IEnumerable <TDMSAttribute> GetTdmsObjectAttributesFromCell(TDMSTableAttributeRow row, string columnName)
        {
            var result = new List <TDMSAttribute>();

            try {
                new TdmsObjectTdmsAttributeValueBehavior(row.Attributes[columnName]).GetValue()
                .Attributes
                .ToList()
                .ForEach(a => result.Add(a));
            }
            catch (Exception) {
                throw;
            }
            return(result);
        }
 /// <summary>
 /// Invokes TdmsAttribute by AttributeDefName from TDMSTableAttributeRow
 /// </summary>
 /// <param name="row">TDMSTableAttributeRow</param>
 /// <param name="name">AttributeDefName to be invoked</param>
 /// <returns>TDMSAttribute</returns>
 public static TDMSAttribute GetAttribute(TDMSTableAttributeRow row, string name)
 {
     return(GetAttribute(row.Attributes, name));
 }
Esempio n. 6
0
 public TarFactory(TDMSTableAttributeRow row)
     : this(row, new NppMaps())
 {
 }
 internal TarFactoryAttributes(TDMSTableAttributeRow row, string columnName)
 {
     Row        = row;
     ColumnName = columnName;
 }