/* * DTS.Slice.Control.Event.Module.Channel.DataValues.cs * * Copyright © 2009 * Diversified Technical Systems, Inc. * All Rights Reserved */ using DTS.Common.Utilities; using DTS.Common.Utilities.DotNetProgrammingConstructs; namespace DTS.Slice.Control { // *** see DTS.Slice.Control.Event.cs *** public partial class Event { // *** see DTS.Slice.Control.Event.Module.cs *** public partial class Module { // *** see DTS.Slice.Control.Event.Module.Channel.cs *** public partial class Channel { /// /// Representation of a channel's data. /// public class DataValues : Exceptional { /// /// Initialize an instance of this class. /// public DataValues() : this(true) { } /// /// Initialize an instance of this class. /// /// /// /// A determining whether or not this data class will use memory mapped files /// to store data (necessary for data sets that exceed internal process memory limitations). /// /// public DataValues(bool useMemoryMappedFile) { try { UseMemoryMappedFile = useMemoryMappedFile; if (UseMemoryMappedFile) { } } catch (System.Exception ex) { throw new Exception("encountered problem constructing " + GetType().FullName, ex); } } /// /// Get/set the switch that will cause this class to use memory mapped files in lieu /// of in-memory list. /// public bool UseMemoryMappedFile { get => _UseMemoryMappedFile.Value; set => _UseMemoryMappedFile.Value = value; } private readonly Property _UseMemoryMappedFile = new Property( typeof(DataValues).Namespace + ".UseMemoryMappedFile", false, false ); } } // *** End Event.Module.Channel *** } // *** End Event.Module *** } // *** End Event *** }