IofCourse
Types
courseControl
A single control visit on a course, referencing a control by id.
rescript
type courseControl = {
controlId: string,
controlType: option<string>,
order: option<int>,
}Fields:
controlId:string— The id of the referenced control.controlType:option<string>— The type of control, e.g."Start","Finish", or"Control".order:option<int>— The visiting order of this control on the course.
t
Defines a course — its name, length, climb, and the ordered sequence of controls.
See: Course in the IOF XML 3.0 XSD
rescript
type t = {
id: option<string>,
name: option<string>,
length: option<float>,
climb: option<float>,
numberOfControls: option<int>,
controls: array<courseControl>,
}Fields:
id:option<string>— The identifier of the course.name:option<string>— The name of the course.length:option<float>— The length of the course in metres.climb:option<float>— The climb of the course in metres.numberOfControls:option<int>— The number of controls on the course, excluding start and finish.controls:array<courseControl>— The ordered sequence of controls on the course.
Values
parse
rescript
let parse: IofXml.XmlUtils.xmlElement => option<t>