-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathLoadSaveIntf.pas
More file actions
38 lines (30 loc) · 1.15 KB
/
LoadSaveIntf.pas
File metadata and controls
38 lines (30 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
unit LoadSaveIntf;
{$REGION 'License'}
{
Copyright (C) 2010 Nick Hodges
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
}
{$ENDREGION}
interface
uses
SysUtils
, Classes
;
type
/// <summary>Interface that describes the functions of loading and saving entities to and from both files and
/// streams.</summary>
ILoadSave = interface
['{C77722C1-AFB1-4A85-BD09-803C19EB2C28}']
procedure LoadFromFile(const FileName: string); overload;
procedure LoadFromFile(const FileName: string; Encoding: TEncoding); overload;
procedure LoadFromStream(Stream: TStream); overload;
procedure LoadFromStream(Stream: TStream; Encoding: TEncoding); overload;
procedure SaveToFile(const FileName: string); overload;
procedure SaveToFile(const FileName: string; Encoding: TEncoding); overload;
procedure SaveToStream(Stream: TStream); overload;
procedure SaveToStream(Stream: TStream; Encoding: TEncoding); overload;
end;
implementation
end.