C# Class PurplePen.ExportXmlBase

Exibir arquivo Open project: petergolde/PurplePen

Protected Properties

Property Type Description
controlCodeMap string>.Dictionary
coordinateMapper CoordinateMapper
eventDB EventDB
mapBounds System.Drawing.RectangleF
modificationDate DateTimeOffset
xmlWriter System.Xml.XmlWriter

Public Methods

Method Description
WriteXml ( string filename, EventDB eventDB, RectangleF mapBounds, CoordinateMapper coordinateMapper ) : void

Protected Methods

Method Description
GetClassNames ( EventDB eventDB, Id courseId ) : string[]
WriteControlPoint ( ControlPointKind controlKind, ControlPoint control, string code ) : void
WriteControls ( ControlPointKind controlKind, string codePrefix ) : void
WriteCourseControl ( ControlPointKind kind, CourseView controlView, bool isScore, int &sequenceNumber, float &distanceThisLeg ) : void
WriteCourseEnd ( ) : void
WriteCourseGroupEnd ( ) : void
WriteCourseGroupStart ( string courseName, int courseNumber, string classNames, bool isScore ) : void
WriteCourseStart ( CourseView courseView, string courseName, int courseNumber, string classNames, bool isScore, int variationNumber, VariationInfo variationInfo ) : void
WriteCourseVariations ( Id courseId, string courseName, int courseNumber, string classNames, bool isScore ) : void
WriteCourses ( ) : void
WriteEnd ( ) : void
WriteSingleCourseVariation ( CourseDesignator courseDesignator, string courseName, int courseNumber, string classNames, bool isScore, int variationNumber, VariationInfo variationInfo ) : void
WriteStart ( ) : void

Private Methods

Method Description
WriteCourse ( Id courseId, int courseNumber ) : bool

Method Details

GetClassNames() protected method

protected GetClassNames ( EventDB eventDB, Id courseId ) : string[]
eventDB EventDB
courseId Id
return string[]

WriteControlPoint() protected abstract method

protected abstract WriteControlPoint ( ControlPointKind controlKind, ControlPoint control, string code ) : void
controlKind ControlPointKind
control ControlPoint
code string
return void

WriteControls() protected method

protected WriteControls ( ControlPointKind controlKind, string codePrefix ) : void
controlKind ControlPointKind
codePrefix string
return void

WriteCourseControl() protected abstract method

protected abstract WriteCourseControl ( ControlPointKind kind, CourseView controlView, bool isScore, int &sequenceNumber, float &distanceThisLeg ) : void
kind ControlPointKind
controlView CourseView
isScore bool
sequenceNumber int
distanceThisLeg float
return void

WriteCourseEnd() protected abstract method

protected abstract WriteCourseEnd ( ) : void
return void

WriteCourseGroupEnd() protected abstract method

protected abstract WriteCourseGroupEnd ( ) : void
return void

WriteCourseGroupStart() protected abstract method

protected abstract WriteCourseGroupStart ( string courseName, int courseNumber, string classNames, bool isScore ) : void
courseName string
courseNumber int
classNames string
isScore bool
return void

WriteCourseStart() protected abstract method

protected abstract WriteCourseStart ( CourseView courseView, string courseName, int courseNumber, string classNames, bool isScore, int variationNumber, VariationInfo variationInfo ) : void
courseView CourseView
courseName string
courseNumber int
classNames string
isScore bool
variationNumber int
variationInfo VariationInfo
return void

WriteCourseVariations() protected method

protected WriteCourseVariations ( Id courseId, string courseName, int courseNumber, string classNames, bool isScore ) : void
courseId Id
courseName string
courseNumber int
classNames string
isScore bool
return void

WriteCourses() protected method

protected WriteCourses ( ) : void
return void

WriteEnd() protected abstract method

protected abstract WriteEnd ( ) : void
return void

WriteSingleCourseVariation() protected method

protected WriteSingleCourseVariation ( CourseDesignator courseDesignator, string courseName, int courseNumber, string classNames, bool isScore, int variationNumber, VariationInfo variationInfo ) : void
courseDesignator CourseDesignator
courseName string
courseNumber int
classNames string
isScore bool
variationNumber int
variationInfo VariationInfo
return void

WriteStart() protected abstract method

protected abstract WriteStart ( ) : void
return void

WriteXml() public method

public WriteXml ( string filename, EventDB eventDB, RectangleF mapBounds, CoordinateMapper coordinateMapper ) : void
filename string
eventDB EventDB
mapBounds System.Drawing.RectangleF
coordinateMapper CoordinateMapper
return void

Property Details

controlCodeMap protected_oe property

protected Dictionary,string> controlCodeMap
return string>.Dictionary

coordinateMapper protected_oe property

protected CoordinateMapper,PurplePen coordinateMapper
return CoordinateMapper

eventDB protected_oe property

protected EventDB,PurplePen eventDB
return EventDB

mapBounds protected_oe property

protected RectangleF,System.Drawing mapBounds
return System.Drawing.RectangleF

modificationDate protected_oe property

protected DateTimeOffset modificationDate
return DateTimeOffset

xmlWriter protected_oe property

protected XmlWriter,System.Xml xmlWriter
return System.Xml.XmlWriter