Feature #457

Keys should be names rather than strings

Added by Andreas Huggel about 11 years ago. Updated over 8 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:design
Target version:1.0

Description

Metadata keys are defined using a std::string, eg.

ExifKey key("Exif.Photo.UserComment");

This method has a number of backdraws:

- The compiler doesn't know the string, no compile-time check is possible,
eg, to catch typos
- Editors cannot help with auto-completion of the key string
- The strings use more memory than necessary

A better implementation would be to have a name (constant variable) for each tag, which the compiler could check and editors could auto-complete.

The information that is required for each tag is: metdata type, group, tag number, ie, 3 small integers

History

#1 Updated by Andreas Huggel over 8 years ago

  • Target version set to 1.0

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux