Subversion Repositories wimsdev

Rev

Rev 20 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20 Rev 10895
Line 1... Line 1...
1
 
1
 
2
Datafile format in oef modules
2
# Datafile format in oef modules
-
 
3
--------------------------------
3
 
4
 
4
-----------------------------------------------------
-
 
5
 
-
 
6
Datafiles in src/data can be taken into account by the mkindex script. such
5
Datafiles in src/data can be taken into account by the mkindex script.
7
files must have extension ".data".
6
Such files must have extension ".data".
8
 
7
 
9
Datafiles are record files. If the first line of the data file (in record 0)
8
Datafiles are record files. If the first line of the data file (in record 0)
10
does not start with '.' or ':', it will be considered as the title and
9
does not start with '.' or ':', it will be considered as the title and
11
treated accordingly. Otherwise the title will default to the file base name.
10
treated accordingly. Otherwise the title will default to the file base name.
12
 
11
 
13
The index of datafile is in the file Dataindex of the module. This is a
12
The index of datafile is in the file Dataindex of the module.
14
multi-line structure, each line corresponding to a data file. A line has two
13
This is a multi-line structure, each line corresponding to a data file.
-
 
14
A line has 3 columns separated by comma:
15
columns separated by comma: first is the file's base name, the second the
15
first is the file's base name,
16
title.
16
the second the title,
-
 
17
and the 3rd counts the records in the file.
17
 
18
 
18
The content of the datafile records can be of any format. The record 0 can
19
The content of the datafile records can be of any format.
19
contain any metadata of the file. Lines in record 0 other than the title
20
The record 0 can contain any metadata of the file.
20
line should start with a dot ('.').
21
Lines in record 0 other than the title line should start with a dot ('.').
21
 
-
 
22
 
-