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

Support group length tags in dictionary, update dictionary-std documentation and implementation #367

Merged
merged 4 commits into from
Jun 15, 2023

Conversation

Enet4
Copy link
Owner

@Enet4 Enet4 commented Jun 14, 2023

This makes a few changes to the dictionary API and to the implementation of dictionary-std.

Summary

  • (breaking change) TagRange now describes group length tags (gggg,0000) in a separate variant, so that applications such as dicom-dump know its alias when it occurs.
  • Improved the documentation of TagRange and its methods.
  • Changed dictionary-std to use once_cell instead of lazy_static. OnceCell is already part of std as of Rust 1.70.0, and LazyCell might become available eventually, making this a smooth transition in the future.
  • Also improved the documentation of public dictionary-std items.

Enet4 added 3 commits June 14, 2023 19:05
- (BREAK) add TagRange::GroupLength
   - Adjust the rest of the code accordingly
- Add static dictionary entry for generic group length attribute
   - return it via get when appropriate
- Add respective test
- change DICT to become a Lazy<StandardDictionaryRegistry>
- add inline hint to registry()
- document things a bit better
@Enet4 Enet4 added breaking change Hint that this may require a major version bump on release C-dictionary Crate: dictionary-std C-core Crate: dicom-core labels Jun 14, 2023
- Command Group Length (0000,0000)
  and File Meta Information Group Length_ (0002,0000)
  still have their own single tag records.
@Enet4 Enet4 merged commit f784bcd into master Jun 15, 2023
@Enet4 Enet4 deleted the change/dict-generalized branch June 15, 2023 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Hint that this may require a major version bump on release C-core Crate: dicom-core C-dictionary Crate: dictionary-std
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant