Changeset 4 for ObjectBaseTypes/UObjectByte.pas
- Timestamp:
- Jul 27, 2009, 3:19:14 PM (15 years ago)
- Location:
- ObjectBaseTypes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ObjectBaseTypes
- Property svn:ignore
-
old new 3 3 TestApplication.res 4 4 *.dcu 5 *.~dsk
-
- Property svn:ignore
-
ObjectBaseTypes/UObjectByte.pas
r3 r4 4 4 5 5 uses 6 Classes, SysUtils, UObjectTypeBase, UInterfacedBits ;6 Classes, SysUtils, UObjectTypeBase, UInterfacedBits, UObjectNumber, UObjectBoolean; 7 7 8 8 type 9 TByte = class(TInterfacedObject, IAssignable )9 TByte = class(TInterfacedObject, IAssignable, IOrderable) 10 10 private 11 11 function GetAsBits: TInterfacedBits; … … 14 14 Value: Byte; 15 15 procedure Assign(Source: TInterfacedObject); 16 function HigherThen(Operand: IOrderable): TBoolean; 17 function LowerThan(Operand: IOrderable): TBoolean; 18 function Max(Operand1, Operand2: IOrderable): IOrderable; 19 function Min(Operand1, Operand2: IOrderable): IOrderable; 16 20 property AsBits: TInterfacedBits read GetAsBits write SetAsBits; 17 21 end; … … 37 41 end; 38 42 43 function TByte.HigherThen(Operand: IOrderable): TBoolean; 44 begin 45 46 end; 47 48 function TByte.LowerThan(Operand: IOrderable): TBoolean; 49 begin 50 51 end; 52 53 function TByte.Max(Operand1, Operand2: IOrderable): IOrderable; 54 begin 55 56 end; 57 58 function TByte.Min(Operand1, Operand2: IOrderable): IOrderable; 59 begin 60 61 end; 62 39 63 procedure TByte.SetAsBits(const Value: TInterfacedBits); 40 64 var
Note:
See TracChangeset
for help on using the changeset viewer.