EntryList
Types
controlCardEntry
A control card entry with rental information, as used in an EntryList.
rescript
type controlCardEntry = {
card: IofXml.IofControlCard.t,
rented: bool,
}Fields:
card:IofXml.IofControlCard.trented:bool— Whether the control card is rented (not owned by the competitor).
personEntry
An event entry for a single person.
See: PersonEntry in the IOF XML 3.0 XSD
rescript
type personEntry = {
id: option<string>,
person: IofXml.IofPerson.t,
organisations: array<IofXml.IofOrganisation.t>,
controlCards: array<controlCardEntry>,
className: option<string>,
classId: option<string>,
status: option<string>,
startTimeAllocationRequest: option<string>,
raceNumber: option<int>,
}Fields:
id:option<string>— Entry identifier, if present.person:IofXml.IofPerson.torganisations:array<IofXml.IofOrganisation.t>— The organisations the person represents at the event.controlCards:array<controlCardEntry>className:option<string>— The name of the class the person is entered in.classId:option<string>— The identifier of the class the person is entered in.status:option<string>— The entry status, e.g."Active"or"Cancelled".startTimeAllocationRequest:option<string>— Any special preferences for start time allocation.raceNumber:option<int>— The ordinal race number this entry applies to in a multi-race event, starting at 1.
t
A list of persons and/or teams registered for a particular event.
See: EntryList in the IOF XML 3.0 XSD
rescript
type t = {
event: option<IofXml.IofEvent.t>,
personEntries: array<personEntry>,
}Fields:
event:option<IofXml.IofEvent.t>personEntries:array<personEntry>— The individual competitors registered for the event.
Values
parsePersonEntry
rescript
let parsePersonEntry: IofXml.XmlUtils.xmlElement => option<personEntry>parse
Parse an IOF XML 3.0 EntryList document string into a typed structure.
rescript
let parse: string => result<t, string>serializePerson
rescript
let serializePerson: IofXml.IofPerson.t => stringserializeOrg
rescript
let serializeOrg: IofXml.IofOrganisation.t => stringserializeControlCard
rescript
let serializeControlCard: controlCardEntry => stringserializePersonEntry
rescript
let serializePersonEntry: personEntry => stringserializeEvent
rescript
let serializeEvent: IofXml.IofEvent.t => stringserialize
Serialize an EntryList structure to an IOF XML 3.0 document string.
rescript
let serialize: t => string