2014-06-01 13:32:21 +00:00
|
|
|
unit X2Log.Details.Intf;
|
|
|
|
|
|
|
|
interface
|
|
|
|
uses
|
|
|
|
System.Classes,
|
2016-10-13 20:58:56 +00:00
|
|
|
System.Generics.Collections,
|
2014-06-01 13:32:21 +00:00
|
|
|
Vcl.Graphics,
|
|
|
|
|
|
|
|
X2Log.Intf;
|
|
|
|
|
|
|
|
|
|
|
|
type
|
|
|
|
IX2LogDetailsText = interface(IX2LogDetails)
|
|
|
|
['{D5F194E9-8633-4575-801D-E8983124118F}']
|
|
|
|
function GetAsString: string;
|
|
|
|
|
|
|
|
property AsString: string read GetAsString;
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
2016-10-13 20:58:56 +00:00
|
|
|
TX2LogValueType = (StringValue, BooleanValue, IntValue, FloatValue, DateTimeValue);
|
|
|
|
|
2016-10-10 20:17:53 +00:00
|
|
|
IX2LogDetailsDictionary = interface(IX2LogDetails)
|
|
|
|
['{24211DC0-F359-466B-A9CD-AF6AA3AE85F4}']
|
2016-10-13 20:58:56 +00:00
|
|
|
function GetKeys: TEnumerable<string>;
|
|
|
|
function GetValueType(const Key: string): TX2LogValueType;
|
|
|
|
|
2016-10-15 09:22:51 +00:00
|
|
|
function GetDisplayValue(const Key: string): string;
|
2016-10-13 20:58:56 +00:00
|
|
|
function GetStringValue(const Key: string): string;
|
|
|
|
function GetBooleanValue(const Key: string): Boolean;
|
|
|
|
function GetIntValue(const Key: string): Int64;
|
|
|
|
function GetFloatValue(const Key: string): Extended;
|
|
|
|
function GetDateTimeValue(const Key: string): TDateTime;
|
|
|
|
|
|
|
|
property Keys: TEnumerable<string> read GetKeys;
|
|
|
|
property ValueType[const Key: string]: TX2LogValueType read GetValueType;
|
2016-10-15 09:22:51 +00:00
|
|
|
property DisplayValue[const Key: string]: string read GetDisplayValue;
|
2016-10-13 20:58:56 +00:00
|
|
|
|
|
|
|
property StringValue[const Key: string]: string read GetStringValue;
|
|
|
|
property BooleanValue[const Key: string]: Boolean read GetBooleanValue;
|
|
|
|
property IntValue[const Key: string]: Int64 read GetIntValue;
|
|
|
|
property FloatValue[const Key: string]: Extended read GetFloatValue;
|
|
|
|
property DateTimeValue[const Key: string]: TDateTime read GetDateTimeValue;
|
2016-10-10 20:17:53 +00:00
|
|
|
end;
|
|
|
|
|
|
|
|
|
2014-06-01 13:32:21 +00:00
|
|
|
IX2LogDetailsBinary = interface(IX2LogDetails)
|
|
|
|
['{265739E7-BB65-434B-BCD3-BB89B936A854}']
|
|
|
|
function GetAsStream: TStream;
|
|
|
|
|
|
|
|
{ Note: Stream Position will be reset by GetAsStream }
|
|
|
|
property AsStream: TStream read GetAsStream;
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
IX2LogDetailsGraphic = interface(IX2LogDetails)
|
|
|
|
['{ED8200AA-0D0F-4D8D-BE7D-A32AC7D630AF}']
|
|
|
|
function GetAsGraphic: TGraphic;
|
|
|
|
|
|
|
|
property AsGraphic: TGraphic read GetAsGraphic;
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
end.
|