FileHeader
in package
implements
Rule
FinalYes
HEAD.CHAR, HEAD.GEDC.FORM and HEAD.FILE describe the file, not its data, and 7.0 has none of them (a 7.0 file is always UTF-8 and lineage-linked, and its name is whatever it is saved as): they are removed without a loss (SPEC section 7, "Source housekeeping structures").
GEDC.VERS is set by the converter.
Table of Contents
Interfaces
- Rule
- One conversion rule. It changes one record at a time, so that a conversion can stream: what it must know about the whole input comes from the Prepass, which runs only when a rule needs it.
Methods
- needsPrepass() : bool
- Whether the rule needs Context::prepass(): facts about the whole input before the first record.
- record() : void
- Converts one record (HEAD and TRLR included) of the document in place.
Methods
needsPrepass()
Whether the rule needs Context::prepass(): facts about the whole input before the first record.
public
needsPrepass() : bool
Return values
boolrecord()
Converts one record (HEAD and TRLR included) of the document in place.
public
record(Document $document, int $record, Context $context) : void