Project

General

Profile

Feature #457

Keys should be names rather than strings

Added by Andreas Huggel over 15 years ago. Updated almost 13 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
design
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

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 almost 13 years ago

  • Target version set to 1.0

Also available in: Atom PDF