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

ServiceDetail messages add EVSide Se/Deserialization #94

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

cienporcien
Copy link
Contributor

Describe your changes

ServiceDetail messages add EVSide Se/Deserialization and unit tests

Issue ticket number and link

#68

Checklist before requesting a review

  • [x ] I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • [x ] I read the contribution documentation and made sure that my changes meet its requirements

Signed-off-by: Roger Bedell <rogerbedell@hotmail.com>
Signed-off-by: Roger Bedell <rogerbedell@hotmail.com>
@SebaLukas SebaLukas self-assigned this Mar 11, 2025
@SebaLukas SebaLukas linked an issue Mar 11, 2025 that may be closed by this pull request
@SebaLukas SebaLukas mentioned this pull request Mar 13, 2025
3 tasks
Copy link
Collaborator

@SebaLukas SebaLukas left a comment

Choose a reason for hiding this comment

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

Looking good 👍 I'll look for more exi streams to test with

const auto& in_parameter = in_parameter_set.Parameter.array[t];
datatypes::Parameter out_parameter;

out_parameter.name = std::string(in_parameter.Name.characters, in_parameter.Name.charactersLen);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of std::string please use CB2CPP_STRING(). Basically its the same but here we should use the macros from cb_exi.hpp for consistency.

out_parameter.value = in_parameter.intValue;
} else if (in_parameter.finiteString_isUsed) {
out_parameter.value =
std::string(in_parameter.finiteString.characters, in_parameter.finiteString.charactersLen);
Copy link
Collaborator

Choose a reason for hiding this comment

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

See above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ServiceDetail conversion functions
2 participants