/[RomCheater]/trunk/RomCheater/Docking/MemorySearch/ResultDataType.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/MemorySearch/ResultDataType.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 249 by william, Sun Jun 3 16:09:05 2012 UTC revision 378 by william, Tue Jun 19 07:56:36 2012 UTC
# Line 7  namespace RomCheater.Docking.MemorySearc Line 7  namespace RomCheater.Docking.MemorySearc
7  {  {
8      public interface IResultDataType      public interface IResultDataType
9      {      {
10          int Address { get; set; }          uint 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; }
# Line 16  namespace RomCheater.Docking.MemorySearc Line 16  namespace RomCheater.Docking.MemorySearc
16      public class ResultDataType : IResultDataType      public class ResultDataType : IResultDataType
17      {      {
18    
19          public ResultDataType(int address) { this.Address = address; }          public ResultDataType(uint address) { this.Address = address; }
20          public ResultDataType(int address, bool isfrozen) : this(address) { this.IsFrozen = isfrozen; }          public ResultDataType(uint address, bool isfrozen) : this(address) { this.IsFrozen = isfrozen; }
21          public ResultDataType(int address, bool isfrozen, object value, SearchDataTypes ValueType) : this(address, isfrozen, value) { this.ValueType = ValueType; }          public ResultDataType(uint address, bool isfrozen, object value, SearchDataTypes ValueType) : this(address, isfrozen, value) { this.ValueType = ValueType; }
22          public ResultDataType(int address, bool isfrozen, object value)          public ResultDataType(uint address, bool isfrozen, object value)
23              : this(address, isfrozen)              : this(address, isfrozen)
24          {          {
25              this.Value = value;              this.Value = value;
# Line 46  namespace RomCheater.Docking.MemorySearc Line 46  namespace RomCheater.Docking.MemorySearc
46              }              }
47              this.IsUnsigned = true;              this.IsUnsigned = true;
48          }          }
49          public ResultDataType(int address, bool isfrozen, byte value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._8bits; this.IsUnsigned = true; }          public ResultDataType(uint address, bool isfrozen, byte value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._8bits; this.IsUnsigned = true; }
50          public ResultDataType(int address, bool isfrozen, sbyte value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._8bits; }          public ResultDataType(uint address, bool isfrozen, sbyte value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._8bits; }
51          public ResultDataType(int address, bool isfrozen, ushort value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._16bits; this.IsUnsigned = true; }          public ResultDataType(uint address, bool isfrozen, ushort value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._16bits; this.IsUnsigned = true; }
52          public ResultDataType(int address, bool isfrozen, short value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._16bits; }          public ResultDataType(uint address, bool isfrozen, short value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._16bits; }
53          public ResultDataType(int address, bool isfrozen, uint value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._32bits; this.IsUnsigned = true; }          public ResultDataType(uint address, bool isfrozen, uint value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._32bits; this.IsUnsigned = true; }
54          public ResultDataType(int address, bool isfrozen, int value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._32bits; }          public ResultDataType(uint address, bool isfrozen, int value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._32bits; }
55          public ResultDataType(int address, bool isfrozen, ulong value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._64bits; this.IsUnsigned = true; }          public ResultDataType(uint address, bool isfrozen, ulong value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._64bits; this.IsUnsigned = true; }
56          public ResultDataType(int address, bool isfrozen, long value) : this(address, isfrozen) { this.Value = (object)value; this.ValueType = SearchDataTypes._64bits; }          public ResultDataType(uint 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 int _address;          private uint _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 int Address { get { return _address; } set { _address = value; } }          public uint 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; } }

Legend:
Removed from v.249  
changed lines
  Added in v.378

  ViewVC Help
Powered by ViewVC 1.1.22