Class TSerializable

Unit

Declaration

type TSerializable = class(TObject)

Description

Hierarchy

Overview

Methods

Protected procedure Serialize(const ADestination: TStream); virtual;
Protected procedure Deserialize(const ASource: TStream); virtual;
Public class function Read7BitEncodedInt(const ASource: TStream): Integer;
Public class procedure Write7BitEncodedInt(Value: Integer; const ADestination: TStream);
Public class function LoadStringFromStream(const ASource: TStream): string;
Public class procedure SaveStringToStream(const AValue: string; const ADestination: TStream);
Public class function LoadDoubleFromStream(const ASource: TStream): double;
Public class procedure SaveDoubleToStream(const AValue: double; const ADestination: TStream);
Public class function LoadIntegerFromStream(const ASource: TStream): Longint;
Public class procedure SaveIntegerToStream(const AValue: Longint; const ADestination: TStream);
Public constructor Create; virtual;
Public class procedure SerializeObject(const AObject: TSerializable; const ADestination: TStream);
Public class function DeserializeObject(const ASource: TStream): TSerializable;
Public class procedure Register(const AClass: TSerializableClass);
Public procedure SerializeToFile(const AFileName: string);
Public class function DeserializeFromFile(const AFileName: string): TSerializable;

Properties

Public property WasDeserialized: boolean read FWasDeserialized;

Description

Methods

Protected procedure Serialize(const ADestination: TStream); virtual;
 
Protected procedure Deserialize(const ASource: TStream); virtual;
 
Public class function Read7BitEncodedInt(const ASource: TStream): Integer;
 
Public class procedure Write7BitEncodedInt(Value: Integer; const ADestination: TStream);
 
Public class function LoadStringFromStream(const ASource: TStream): string;
 
Public class procedure SaveStringToStream(const AValue: string; const ADestination: TStream);
 
Public class function LoadDoubleFromStream(const ASource: TStream): double;
 
Public class procedure SaveDoubleToStream(const AValue: double; const ADestination: TStream);
 
Public class function LoadIntegerFromStream(const ASource: TStream): Longint;
 
Public class procedure SaveIntegerToStream(const AValue: Longint; const ADestination: TStream);
 
Public constructor Create; virtual;
 
Public class procedure SerializeObject(const AObject: TSerializable; const ADestination: TStream);
 
Public class function DeserializeObject(const ASource: TStream): TSerializable;
 
Public class procedure Register(const AClass: TSerializableClass);
 
Public procedure SerializeToFile(const AFileName: string);
 
Public class function DeserializeFromFile(const AFileName: string): TSerializable;

Read back from file.

Exceptions raised
EInvalidCacheFileVersion
When the cached file contents are from an old pasdoc version (or invalid).

Properties

Public property WasDeserialized: boolean read FWasDeserialized;
 

Generated by PasDoc 0.16.0.