115 |
|
|
116 |
|
{ TFBStatus } |
117 |
|
|
118 |
< |
TFBStatus = class(TFBInterfacedObject) |
118 |
> |
TFBStatus = class(TFBInterfacedObject, IStatus) |
119 |
|
private |
120 |
|
FIBDataBaseErrorMessages: TIBDataBaseErrorMessages; |
121 |
|
FPrefix: AnsiString; |
127 |
|
public |
128 |
|
constructor Create(aOwner: TFBClientAPI; prefix: AnsiString=''); |
129 |
|
function StatusVector: PStatusVector; virtual; abstract; |
130 |
+ |
procedure Assign(src: TFBStatus); virtual; |
131 |
+ |
function Clone: IStatus; virtual; abstract; |
132 |
|
|
133 |
|
{IStatus} |
134 |
|
function GetIBErrorCode: TStatusCode; |
639 |
|
FIBDataBaseErrorMessages := [ShowIBMessage]; |
640 |
|
end; |
641 |
|
|
642 |
+ |
procedure TFBStatus.Assign(src: TFBStatus); |
643 |
+ |
begin |
644 |
+ |
FOwner := src.FOwner; |
645 |
+ |
FPrefix := src.FPrefix; |
646 |
+ |
SetIBDataBaseErrorMessages(src.GetIBDataBaseErrorMessages); |
647 |
+ |
end; |
648 |
+ |
|
649 |
|
function TFBStatus.GetIBErrorCode: TStatusCode; |
650 |
|
begin |
651 |
|
Result := StatusVector^[1]; |