Пример #1
0
 /// <summary>
 /// Determines whether the channel can be written to an archive, depending on its type.
 /// </summary>
 public static bool IsArchivable(this Cnl cnl)
 {
     return(CnlTypeID.IsArchivable(cnl.CnlTypeID));
 }
Пример #2
0
 /// <summary>
 /// Determines whether the channel type relates to an output channel.
 /// </summary>
 public static bool IsOutput(this Cnl cnl)
 {
     return(CnlTypeID.IsOutput(cnl.CnlTypeID));
 }
Пример #3
0
 /// <summary>
 /// Determines whether the channel type relates to a calculated channel.
 /// </summary>
 public static bool IsCalculated(this Cnl cnl)
 {
     return(CnlTypeID.IsCalculated(cnl.CnlTypeID));
 }
Пример #4
0
 /// <summary>
 /// Determines whether the channel represents an array of numbers.
 /// </summary>
 public static bool IsNumericArray(this Cnl cnl)
 {
     return(cnl.DataLen > 1 && DataTypeID.IsNumeric(cnl.DataTypeID));
 }
Пример #5
0
 /// <summary>
 /// Determines whether the channel represents an array or string.
 /// </summary>
 public static bool IsArray(this Cnl cnl)
 {
     return(cnl.DataLen > 1);
 }
Пример #6
0
 /// <summary>
 /// Determines whether the channel data type is string.
 /// </summary>
 public static bool IsString(this Cnl cnl)
 {
     return(DataTypeID.IsString(cnl.DataTypeID));
 }
Пример #7
0
 /// <summary>
 /// Determines whether the channel data type is numeric.
 /// </summary>
 public static bool IsNumeric(this Cnl cnl)
 {
     return(DataTypeID.IsNumeric(cnl.DataTypeID));
 }
Пример #8
0
 /// <summary>
 /// Gets the normalized data length of the specified channel.
 /// </summary>
 public static int GetDataLength(this Cnl cnl)
 {
     return(cnl.DataLen.HasValue ? Math.Max(cnl.DataLen.Value, 1) : 1);
 }