Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function DataModelConstructor::RegisterCustomDataVariableDefinition #367

Merged
merged 1 commit into from
Nov 4, 2022

Conversation

Dakror
Copy link
Contributor

@Dakror Dakror commented Oct 15, 2022

While DataModelConstructor::BindCustomDataVariable is useful, i would need to do it for every occurrence of a variable with that custom type definition across all my data models.

This new method registers the VariableDefinition globally in the Type Registry, just like RegisterScalar etc would. Thus all models can use any variables of the type transparently.

@mikke89 mikke89 added data binding enhancement New feature or request labels Oct 17, 2022
@mikke89
Copy link
Owner

mikke89 commented Nov 4, 2022

Looks good to me, thank you!

@mikke89 mikke89 merged commit cacd8f8 into mikke89:master Nov 4, 2022
@Dakror Dakror deleted the register-custom-vardef branch November 5, 2022 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data binding enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants