Example #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));
 }
Example #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));
 }
Example #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));
 }
Example #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));
 }
Example #5
0
 /// <summary>
 /// Determines whether the channel represents an array or string.
 /// </summary>
 public static bool IsArray(this Cnl cnl)
 {
     return(cnl.DataLen > 1);
 }
Example #6
0
 /// <summary>
 /// Determines whether the channel data type is string.
 /// </summary>
 public static bool IsString(this Cnl cnl)
 {
     return(DataTypeID.IsString(cnl.DataTypeID));
 }
Example #7
0
 /// <summary>
 /// Determines whether the channel data type is numeric.
 /// </summary>
 public static bool IsNumeric(this Cnl cnl)
 {
     return(DataTypeID.IsNumeric(cnl.DataTypeID));
 }
Example #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);
 }