/*
* HDF.File.cs
*
* Copyright © 2017
* Diversified Technical Systems, Inc.
* All Rights Reserved
*/
using System.Collections.Generic;
namespace DTS.Serialization.HDF
{
///
/// implementation of the Serialization.File class for HDF5
/// https://en.wikipedia.org/wiki/Hierarchical_Data_Format
/// http://fogbugz/fogbugz/default.asp?9166
///
public partial class File
: Serialization.File, IWritable
{
///
/// constructor
///
public File()
: base("HDF")
{
}
///
/// Get the file writer for this file type.
///
public IWriter 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 _exporter;
///
/// Controls whether to export ADC or not
///
public bool ExportADC
{
set => ((Writer)Exporter).ExportADC = value;
}
///
/// Controls whether to export EU or not
///
public bool ExportEU
{
set => ((Writer)Exporter).ExportEU = value;
}
///
/// Controls whether to export mV or not
///
public bool ExportMV
{
set => ((Writer)Exporter).ExportMV = value;
}
///
/// controls whether log files are included in the HDF
///
public bool ExportLogs
{
set => ((Writer)Exporter).ExportLogs = value;
}
///
/// controls whether to include report files in the HDF
///
public bool ExportReports
{
set => ((Writer)Exporter).ExportReports = value;
}
///
/// controls whether to include setup files in the HDF
///
public bool ExportSetup
{
set => ((Writer)Exporter).ExportSetup = value;
}
///
/// controls whether to include the .dts file in the HDF
///
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 ISOToFineLocation3
{
set => ((Writer)Exporter).ISOToFineLocation3 = value;
}
public Dictionary ISOToPhysicalDimension
{
set => ((Writer)Exporter).ISOToPhysicalDimension = value;
}
public Dictionary ISOToPosition
{
set => ((Writer)Exporter).ISOToPosition = value;
}
public Dictionary ISOToTransducerMainLocation
{
set => ((Writer)Exporter).ISOToTransducerMainLocation = value;
}
}
}