init
This commit is contained in:
67
DataPRO/IService/SLICE Service/SystemAttribute.cs
Normal file
67
DataPRO/IService/SLICE Service/SystemAttribute.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
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;
|
||||
// }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user