| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 | | Quintiq file version 2.0 |  | #parent: #root |  | Method Copy (ObjectCopyComponent copier, LibOpt_Run newrun) |  | { |  |   Description: |  |   [* |  |     This method is called when the run want to copy itself to the given `newrun`, using the given copier. |  |     By default, this component is added to the copier together with all its children. |  |     This default behavior can be problematic, e.g. when this component owns objects with type indices. In this case, this method should be overridden to implement its own copy behavior. |  |     After the copier will have executed, `InitAsCopyOf` will be called on the new component. |  |   *] |  |   TextBody: |  |   [* |  |     // by default (if not overridden), add this component with its owning closure to the copier: |  |     withclosure := true; |  |     copier.AddRoot( this, newrun, withclosure ); |  |   *] |  | } | 
 |