7 |
{ |
{ |
8 |
public interface IResultDataType |
public interface IResultDataType |
9 |
{ |
{ |
10 |
uint Address { get; set; } |
int Address { get; set; } |
11 |
bool IsFrozen { get; set; } |
bool IsFrozen { get; set; } |
12 |
bool IsUnsigned { get; set; } |
bool IsUnsigned { get; set; } |
13 |
object Value { get; set; } |
object Value { get; set; } |
16 |
public class ResultDataType : IResultDataType |
public class ResultDataType : IResultDataType |
17 |
{ |
{ |
18 |
|
|
19 |
public ResultDataType(uint address) { this.Address = address; } |
public ResultDataType(int address) { this.Address = address; } |
20 |
public ResultDataType(uint address, bool isfrozen) : this(address) { this.IsFrozen = isfrozen; } |
public ResultDataType(int address, bool isfrozen) : this(address) { this.IsFrozen = isfrozen; } |
21 |
public ResultDataType(uint address, bool isfrozen, object value, SearchDataTypes ValueType) : this(address, isfrozen, value) { this.ValueType = ValueType; } |
public ResultDataType(int address, bool isfrozen, object value, SearchDataTypes ValueType) : this(address, isfrozen, value) { this.ValueType = ValueType; } |
22 |
public ResultDataType(uint address, bool isfrozen, object value) |
public ResultDataType(int address, bool isfrozen, object value) |
23 |
: this(address, isfrozen) |
: this(address, isfrozen) |
24 |
{ |
{ |
25 |
this.Value = value; |
this.Value = value; |
46 |
} |
} |
47 |
this.IsUnsigned = true; |
this.IsUnsigned = true; |
48 |
} |
} |
49 |
public ResultDataType(uint address, bool isfrozen, byte value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._8bits; this.IsUnsigned = true; } |
public ResultDataType(int address, bool isfrozen, byte value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._8bits; this.IsUnsigned = true; } |
50 |
public ResultDataType(uint address, bool isfrozen, sbyte value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._8bits; } |
public ResultDataType(int address, bool isfrozen, sbyte value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._8bits; } |
51 |
public ResultDataType(uint address, bool isfrozen, ushort value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._16bits; this.IsUnsigned = true; } |
public ResultDataType(int address, bool isfrozen, ushort value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._16bits; this.IsUnsigned = true; } |
52 |
public ResultDataType(uint address, bool isfrozen, short value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._16bits; } |
public ResultDataType(int address, bool isfrozen, short value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._16bits; } |
53 |
public ResultDataType(uint address, bool isfrozen, uint value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._32bits; this.IsUnsigned = true; } |
public ResultDataType(int address, bool isfrozen, uint value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._32bits; this.IsUnsigned = true; } |
54 |
public ResultDataType(uint address, bool isfrozen, int value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._32bits; } |
public ResultDataType(int address, bool isfrozen, int value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._32bits; } |
55 |
public ResultDataType(uint address, bool isfrozen, ulong value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._64bits; this.IsUnsigned = true; } |
public ResultDataType(int address, bool isfrozen, ulong value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._64bits; this.IsUnsigned = true; } |
56 |
public ResultDataType(uint address, bool isfrozen, long value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._64bits; } |
public ResultDataType(int address, bool isfrozen, long value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._64bits; } |
57 |
|
|
58 |
#region IResultDataType Members |
#region IResultDataType Members |
59 |
|
|
60 |
private uint _address; |
private int _address; |
61 |
private bool _isfrozen; |
private bool _isfrozen; |
62 |
private object _value; |
private object _value; |
63 |
private SearchDataTypes _valuetype; |
private SearchDataTypes _valuetype; |
64 |
private bool _IsUnsigned = false; |
private bool _IsUnsigned = false; |
65 |
|
|
66 |
public uint Address { get { return _address; } set { _address = value; } } |
public int Address { get { return _address; } set { _address = value; } } |
67 |
public bool IsFrozen { get { return _isfrozen; } set { _isfrozen = value; } } |
public bool IsFrozen { get { return _isfrozen; } set { _isfrozen = value; } } |
68 |
public object Value { get { return _value; } set { _value = value; } } |
public object Value { get { return _value; } set { _value = value; } } |
69 |
public SearchDataTypes ValueType { get { return _valuetype; } set { _valuetype = value; } } |
public SearchDataTypes ValueType { get { return _valuetype; } set { _valuetype = value; } } |