Validates that all necessary data is available for creating a leg
of the given type. Creates leg and returns it.
Namespace: FlightPlanAssembly: FlightPlanXML (in FlightPlanXML.dll) Versión: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public Leg CreateLeg( Stage stg, string type ) |
Visual Basic |
---|
Public Function CreateLeg ( _ stg As Stage, _ type As String _ ) As Leg |
Visual C++ |
---|
public: Leg^ CreateLeg( Stage^ stg, String^ type ) |
Parameters
- stg
- Type: FlightPlan..::..Stage
Stage the new leg will belong to.
- type
- Type: System..::..String
A String indicating the type of the leg to be created.
Return Value
A new Leg of the given type initialized with the data held by the LegHelper.
Remarks
To add a new leg type create new branch specifically for the new
type. Ensure that all parameters required for the new type are
available. Create instance and return.