68 lines
2.1 KiB
C#
68 lines
2.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using DTS.DASLib.Command.SLICE;
|
|
|
|
namespace DTS.Slice.Service
|
|
{
|
|
public class SystemAttribute : Attribute
|
|
{
|
|
// public enum TypeValues
|
|
// {
|
|
// SerialNumber = 0x00, SliceType, FlashTechnology, FlashSizeInBytes,
|
|
// FlashSerialNumber, MaximumSampleRate, TemperatureScaleFactor,
|
|
// TemperatureOffset, TotalEventsStored,
|
|
// }
|
|
|
|
// public SystemAttribute()
|
|
// : base()
|
|
// {
|
|
// _store = AttributeStore.System;
|
|
// }
|
|
//}
|
|
|
|
//public class SerialNumberAttribute : SystemAttribute
|
|
//{
|
|
// public string Value
|
|
// {
|
|
// get
|
|
// {
|
|
// string tmp;
|
|
// ByteConvertor.Convert(Data, 0, out tmp);
|
|
// return tmp;
|
|
// }
|
|
// set { Data = ByteConvertor.ToByteArray(value); }
|
|
// }
|
|
|
|
// public SerialNumberAttribute()
|
|
// : base()
|
|
// {
|
|
// _description = "SerialNumberAttribute";
|
|
// _typevalue = (byte)TypeValues.SerialNumber;
|
|
// _datatype = AttributeTypes.AttributeDataTypes.Ascii;
|
|
// }
|
|
//}
|
|
|
|
//public class TotalEventsStoredAttribute : SystemAttribute
|
|
//{
|
|
// public UInt16 Value
|
|
// {
|
|
// get
|
|
// {
|
|
// UInt16 tmp;
|
|
// ByteConvertor.Convert(Data, 0, out tmp);
|
|
// return tmp;
|
|
// }
|
|
// set { Data = ByteConvertor.ToByteArray(value); }
|
|
// }
|
|
|
|
// public TotalEventsStoredAttribute()
|
|
// : base()
|
|
// {
|
|
// _description = "TotalEventsStoredAttribute";
|
|
// _typevalue = (byte)TypeValues.TotalEventsStored;
|
|
// _datatype = AttributeTypes.AttributeDataTypes.UInt16;
|
|
// }
|
|
}
|
|
}
|