using System; namespace MECF.Framework.RT.EquipmentLibrary.Core.Attributes { /// /// 用于标记HIWIN机械臂控制器状态Bit定义的属性。 /// public class BitTypeClassPropertyAttribute : Attribute { #region Constructors public BitTypeClassPropertyAttribute(int bitIndex, string message) { BitIndex = bitIndex; Message = message; IsErrorBit = false; } public BitTypeClassPropertyAttribute(int bitIndex, string message, bool isErrBit) : this(bitIndex, message) { IsErrorBit = isErrBit; } #endregion #region Properties /// /// 当前状态所在的位地址。 /// public int BitIndex { get; } /// /// 当前状态信息。 /// public string Message { get; } /// /// 当前Bit是否表示错误。 /// public bool IsErrorBit { get; } #endregion } }