/// <summary> /// Initializes a new instances of the <see cref="FamosFileAnalogComponent"/> class. /// </summary> /// <param name="name">The name of this component. This automatically adds a <see cref="FamosFileChannel"/> instance to the component.</param> /// <param name="dataType">The data type of this component.</param> /// <param name="length">The length of this component.</param> /// <param name="componentType">The type of this component. Depending on the higher-level field type, the meaning varies between 'Y', 'Y of XY', 'real part', 'magnitude', 'magnitude in dB' and 'timestamp ASCII' for <see cref="FamosFileComponentType.Primary"/> and between 'X of XY', 'imaginary part' and 'phase' for <see cref="FamosFileComponentType.Secondary"/>.</param> public FamosFileAnalogComponent(string name, FamosFileDataType dataType, int length, FamosFileComponentType componentType) : this(name, dataType, length, componentType, new FamosFileCalibration()) { // }
/// <summary> /// Initializes a new instances of the <see cref="FamosFileAnalogComponent"/> class. /// </summary> /// <param name="dataType">The data type of this component.</param> /// <param name="length">The length of this component.</param> /// <param name="componentType">The type of this component. Depending on the higher-level field type, the meaning varies between 'Y', 'Y of XY', 'real part', 'magnitude', 'magnitude in dB' and 'timestamp ASCII' for <see cref="FamosFileComponentType.Primary"/> and between 'X of XY', 'imaginary part' and 'phase' for <see cref="FamosFileComponentType.Secondary"/>.</param> /// <param name="calibrationInfo">The calibration info of this component.</param> public FamosFileAnalogComponent(FamosFileDataType dataType, int length, FamosFileComponentType componentType, FamosFileCalibration calibrationInfo) : base(dataType, length, componentType) { this.CalibrationInfo = calibrationInfo; }
/// <summary> /// Initializes a new instances of the <see cref="FamosFileAnalogComponent"/> class. /// </summary> /// <param name="name">The name of this component. This automatically adds a <see cref="FamosFileChannel"/> instance to the component.</param> /// <param name="dataType">The data type of this component.</param> /// <param name="length">The length of this component.</param> /// <param name="componentType">The type of this component. Depending on the higher-level field type, the meaning varies between 'Y', 'Y of XY', 'real part', 'magnitude', 'magnitude in dB' and 'timestamp ASCII' for <see cref="FamosFileComponentType.Primary"/> and between 'X of XY', 'imaginary part' and 'phase' for <see cref="FamosFileComponentType.Secondary"/>.</param> /// <param name="calibrationInfo">The calibration info of this component.</param> public FamosFileAnalogComponent(string name, FamosFileDataType dataType, int length, FamosFileComponentType componentType, FamosFileCalibration calibrationInfo) : base(dataType, length, componentType) { this.Channels.Add(new FamosFileChannel(name)); this.CalibrationInfo = calibrationInfo; }
private protected FamosFileComponent(FamosFileDataType dataType, int length, FamosFileComponentType componentType) { this.Type = componentType; this.BufferInfo = new FamosFileBufferInfo(new List <FamosFileBuffer>() { new FamosFileBuffer() }); this.PackInfo = new FamosFilePackInfo(dataType, this.BufferInfo.Buffers.ToList()); var buffer = this.BufferInfo.Buffers.First(); buffer.Length = length * this.PackInfo.ValueSize; buffer.ConsumedBytes = buffer.Length; // This could theoretically be set to actual value during 'famosFile.Save(...);' but how handle interlaced data? }
/// <summary> /// Initializes a new instances of the <see cref="FamosFileDigitalComponent"/> class. /// </summary> /// <param name="length">The length of this component.</param> /// <param name="componentType">The type of this component. Depending on the higher-level field type, the meaning varies between 'Y', 'Y of XY', 'real part', 'magnitude', 'magnitude in dB' and 'timestamp ASCII' for <see cref="FamosFileComponentType.Primary"/> and between 'X of XY', 'imaginary part' and 'phase' for <see cref="FamosFileComponentType.Secondary"/>.</param> public FamosFileDigitalComponent(int length, FamosFileComponentType componentType) : base(FamosFileDataType.Digital16Bit, length, componentType) { // }