~ubuntu-branches/debian/lenny/fpc/lenny

« back to all changes in this revision

Viewing changes to fcl/db/memds/README

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-05-17 17:12:11 UTC
  • mfrom: (3.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080517171211-9qi33xhd9evfa0kg
Tags: 2.2.0-dfsg1-9
[ Torsten Werner ]
* Add Mazen Neifer to Uploaders field.

[ Mazen Neifer ]
* Moved FPC sources into a version dependent directory from /usr/share/fpcsrc
  to /usr/share/fpcsrc/${FPCVERSION}. This allow installing more than on FPC
  release.
* Fixed far call issue in compiler preventing building huge binearies.
  (closes: #477743)
* Updated building dependencies, recomennded and suggested packages.
* Moved fppkg to fp-utils as it is just a helper tool and is not required by
  compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
The MemDS unit contains a TMemDataset class. It implements an in-memory
3
 
TDataset class. 
4
 
 
5
 
- The data can be loaded from/to Stream or file.
6
 
  This can be automated by setting the 'FileName' property.
7
 
- The data can be copied from another dataset.
8
 
 
9
 
Extra methods:
10
 
 
11
 
Property FileName : String;
12
 
 
13
 
If set, the data is loaded from this file when opening the dataset, and saved
14
 
when it is closed (and modified).
15
 
 
16
 
procedure CreateTable;
17
 
 
18
 
Creates the needed in-memory structures after fielddefs were added.
19
 
See testpop.pp for an example.
20
 
 
21
 
function DataSize : Integer;
22
 
 
23
 
Size of data in memory.
24
 
 
25
 
procedure Clear(ClearDefs : Boolean);
26
 
procedure Clear;
27
 
 
28
 
Clears the data. If cleardefs=True, then fielddefs are cleared.
29
 
If the definitions are cleared (default), the dataset is closed.
30
 
 
31
 
Procedure SaveToFile(AFileName : String);
32
 
Procedure SaveToFile(AFileName : String; SaveData : Boolean);
33
 
 
34
 
Save Data to file. If SaveData=False, then only metadata is written.
35
 
 
36
 
Procedure SaveToStream(F : TStream);
37
 
Procedure SaveToStream(F : TStream; SaveData : Boolean);
38
 
 
39
 
Save Data to stream. If SaveData=False, then only metadata is written.
40
 
 
41
 
Procedure LoadFromStream(F : TStream);
42
 
 
43
 
Load Data from a file created with savetofile.
44
 
 
45
 
Procedure LoadFromFile(AFileName : String);
46
 
 
47
 
Load Data from a stream, created with saveto stream.
48
 
 
49
 
Procedure CopyFromDataset(DataSet : TDataSet);
50
 
Procedure CopyFromDataset(DataSet : TDataSet; CopyData : Boolean);
51
 
 
52
 
Copy data from another dataset. Only fields (not fielddefs) are copied.
53
 
The dataset must be open. If CopyData is false, only the field definitions
54
 
are copied, but no data is copied. By default, data is also copied.
55
 
 
56
 
Property Modified : Boolean Read FModified;
57
 
 
58
 
Indicates whether the in-memory data was modified. When data is modified,
59
 
and the dataset is closed, the data is saved to stream if the 'filename'
60
 
property is set.