Skip to content

Commit

Permalink
change name to addCustomChanges
Browse files Browse the repository at this point in the history
  • Loading branch information
nick4598 committed Dec 18, 2024
1 parent 25f6611 commit 4fb7071
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/transformer/src/IModelExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ export class IModelExporter {
* @note The transformer will have built up the remap table between the source and target iModels before calling this function. This means that functions like [[IModelTransformer.context.findTargetElementId]] will return meaningful results.
* @note Its expected that this function be overridden by a subclass of exporter if it needs to modify sourceDbChanges.
*/
public addCustomChangesCallback(): void {}
public addCustomChanges(): void {}

/** Register the handler that will be called by IModelExporter. */
public registerHandler(handler: IModelExportHandler): void {
Expand Down Expand Up @@ -1227,6 +1227,15 @@ export class ChangedInstanceIds {
this.handleChange(this.element, changeType, change.ECInstanceId);
}

public addCustomElementChange(
changeType: SqliteChangeOp,
id: Id64String
): void {
// if delete unnecessary?
this.addModelToUpdated(id);
this.handleChange(this.element, changeType, id);
}

/**
* Adds the provided change to the appropriate set of changes by class type (codeSpec, model, element, aspect) maintained by this instance of ChangedInstanceIds.
* If the same ECInstanceId is seen multiple times, the changedInstanceIds will be modified accordingly, i.e. if an id 'x' was updated but now we see 'x' was deleted, we will remove 'x'
Expand Down

0 comments on commit 4fb7071

Please sign in to comment.