init
This commit is contained in:
141
Common/DTS.Common.Serialization/HDF/HDF.File.cs
Normal file
141
Common/DTS.Common.Serialization/HDF/HDF.File.cs
Normal file
@@ -0,0 +1,141 @@
|
||||
/*
|
||||
* HDF.File.cs
|
||||
*
|
||||
* Copyright © 2017
|
||||
* Diversified Technical Systems, Inc.
|
||||
* All Rights Reserved
|
||||
*/
|
||||
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace DTS.Serialization.HDF
|
||||
{
|
||||
/// <summary>
|
||||
/// implementation of the Serialization.File class for HDF5
|
||||
/// https://en.wikipedia.org/wiki/Hierarchical_Data_Format
|
||||
/// http://fogbugz/fogbugz/default.asp?9166
|
||||
/// </summary>
|
||||
public partial class File
|
||||
: Serialization.File, IWritable<Test>
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// constructor
|
||||
/// </summary>
|
||||
public File()
|
||||
: base("HDF")
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get the file writer for this file type.
|
||||
/// </summary>
|
||||
public IWriter<Test> Exporter
|
||||
{
|
||||
get
|
||||
{
|
||||
try
|
||||
{
|
||||
if (_exporter == null)
|
||||
{
|
||||
var writer = new Writer(this, DefaultEncoding);
|
||||
|
||||
_exporter = writer;
|
||||
}
|
||||
return _exporter;
|
||||
}
|
||||
|
||||
catch (System.Exception ex)
|
||||
{
|
||||
throw new Exception("encountered problem getting exporter", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
private IWriter<Test> _exporter;
|
||||
|
||||
/// <summary>
|
||||
/// Controls whether to export ADC or not
|
||||
/// </summary>
|
||||
public bool ExportADC
|
||||
{
|
||||
set => ((Writer)Exporter).ExportADC = value;
|
||||
}
|
||||
/// <summary>
|
||||
/// Controls whether to export EU or not
|
||||
/// </summary>
|
||||
public bool ExportEU
|
||||
{
|
||||
set => ((Writer)Exporter).ExportEU = value;
|
||||
}
|
||||
/// <summary>
|
||||
/// Controls whether to export mV or not
|
||||
/// </summary>
|
||||
public bool ExportMV
|
||||
{
|
||||
set => ((Writer)Exporter).ExportMV = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// controls whether log files are included in the HDF
|
||||
/// </summary>
|
||||
public bool ExportLogs
|
||||
{
|
||||
set => ((Writer)Exporter).ExportLogs = value;
|
||||
}
|
||||
/// <summary>
|
||||
/// controls whether to include report files in the HDF
|
||||
/// </summary>
|
||||
public bool ExportReports
|
||||
{
|
||||
set => ((Writer)Exporter).ExportReports = value;
|
||||
}
|
||||
/// <summary>
|
||||
/// controls whether to include setup files in the HDF
|
||||
/// </summary>
|
||||
public bool ExportSetup
|
||||
{
|
||||
set => ((Writer)Exporter).ExportSetup = value;
|
||||
}
|
||||
/// <summary>
|
||||
/// controls whether to include the .dts file in the HDF
|
||||
/// </summary>
|
||||
public bool ExportDTSFile
|
||||
{
|
||||
set => ((Writer)Exporter).ExportDTSFile = value;
|
||||
}
|
||||
public string CustomerName
|
||||
{
|
||||
set => ((Writer)Exporter).CustomerName = value;
|
||||
}
|
||||
public string TestEngineerName
|
||||
{
|
||||
set => ((Writer)Exporter).TestEngineerName = value;
|
||||
}
|
||||
|
||||
public string LabName
|
||||
{
|
||||
set => ((Writer)Exporter).LabName = value;
|
||||
}
|
||||
|
||||
public bool IsWiamanData
|
||||
{
|
||||
set => ((Writer)Exporter).IsWiamanData = value;
|
||||
}
|
||||
public Dictionary<string, string> ISOToFineLocation3
|
||||
{
|
||||
set => ((Writer)Exporter).ISOToFineLocation3 = value;
|
||||
}
|
||||
public Dictionary<string, string> ISOToPhysicalDimension
|
||||
{
|
||||
set => ((Writer)Exporter).ISOToPhysicalDimension = value;
|
||||
}
|
||||
public Dictionary<string, string> ISOToPosition
|
||||
{
|
||||
set => ((Writer)Exporter).ISOToPosition = value;
|
||||
}
|
||||
public Dictionary<string, string> ISOToTransducerMainLocation
|
||||
{
|
||||
set => ((Writer)Exporter).ISOToTransducerMainLocation = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user