Esempio n. 1
0
        /// <inheritdoc/>
        public string ToDelimitedString()
        {
            System.Globalization.CultureInfo culture = System.Globalization.CultureInfo.CurrentCulture;
            string separator = IsSubcomponent ? Configuration.SubcomponentSeparator : Configuration.ComponentSeparator;

            return(string.Format(
                       culture,
                       StringHelper.StringFormatSequence(0, 6, separator),
                       ChannelIdentifier?.ToDelimitedString(),
                       WaveformSource?.ToDelimitedString(),
                       ChannelSensitivityAndUnits?.ToDelimitedString(),
                       ChannelCalibrationParameters?.ToDelimitedString(),
                       ChannelSamplingFrequency.HasValue ? ChannelSamplingFrequency.Value.ToString(Consts.NumericFormat, culture) : null,
                       MinimumAndMaximumDataValues?.ToDelimitedString()
                       ).TrimEnd(separator.ToCharArray()));
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChannelDefinition"/> class.
 /// </summary>
 /// <param name="channelIdentifier">CD.1 - Channel Identifier.</param>
 public ChannelDefinition(ChannelIdentifier channelIdentifier)
 {
     ChannelIdentifier = channelIdentifier;
 }