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

Added global properties to DBC class #80

Merged
merged 8 commits into from
Sep 2, 2024
Merged

Added global properties to DBC class #80

merged 8 commits into from
Sep 2, 2024

Conversation

Adhara3
Copy link
Collaborator

@Adhara3 Adhara3 commented Aug 30, 2024

As per user request in #70

@Adhara3 Adhara3 added the enhancement New feature or request label Aug 30, 2024
@@ -37,6 +37,10 @@ public bool TryParse(string line, IDbcBuilder builder, INextLineProvider nextLin
builder.AddMessageCustomProperty(match.Groups[1].Value, uint.Parse(match.Groups[5].Value, CultureInfo.InvariantCulture), stringValue, isNumeric);
else if (match.Groups[6].Value == "SG_")
builder.AddSignalCustomProperty(match.Groups[1].Value, uint.Parse(match.Groups[7].Value, CultureInfo.InvariantCulture), match.Groups[8].Value, stringValue, isNumeric);
else
{
builder.AddGlobalCustomProperty(match.Groups[1].Value, match.Groups[9].Value, isNumeric);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Whitehouse112 the group's indexes here have basically been guessed. Is there a cleaner way?

Copy link
Contributor

@Uight Uight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you do a tester a favor and add a testcase for the assignment on globalproperties?

@Adhara3
Copy link
Collaborator Author

Adhara3 commented Aug 30, 2024

Could you do a tester a favor and add a testcase for the assignment on globalproperties?

Will do, still a wip

@Adhara3 Adhara3 self-assigned this Aug 31, 2024
@Adhara3 Adhara3 added this to the 1.7 milestone Aug 31, 2024
@Adhara3 Adhara3 merged commit edc092a into main Sep 2, 2024
2 checks passed
@Adhara3 Adhara3 deleted the global-properties branch September 2, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
3 participants