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

Allow caller to specify tags to be ignored during parse operation #124

Open
frizbog opened this issue Aug 12, 2016 · 3 comments
Open

Allow caller to specify tags to be ignored during parse operation #124

frizbog opened this issue Aug 12, 2016 · 3 comments

Comments

@frizbog
Copy link
Owner

frizbog commented Aug 12, 2016

The Parser could be pre-loaded with a set of tags to be ignored prior to parsing. For example, if you know that when you parse a file you won't be looking at any of the multimedia records, you could specify that OBJE records (along with all their children) are to be ignored. The parser would then skip right over these records without loading them into the object model.

@frizbog frizbog changed the title Create a set of ignored tags Allow caller to specify tags to be ignored during parse operation Aug 12, 2016
@frizbog
Copy link
Owner Author

frizbog commented Aug 18, 2016

This could be problematic if unignored tags have pointers/references to the XREFs of things that are ignored. One solution would be to never ignore anything that has an XREF on it...but that would really take away a lot of the intended benefit of this item.

@frizbog
Copy link
Owner Author

frizbog commented Oct 10, 2016

Thinking more about my comment of Aug 18...if you've said you don't care about a type of tag, it follows that you don't care about references to it. As long as the file continues to load ok, I am not sure this would really be an issue.

@frizbog
Copy link
Owner Author

frizbog commented Oct 10, 2016

What would be an issue would be context. Some tags have multiple meanings, and those meanings derive from their context. Further, you might reasonably want some control to say things like "I don't care about source citations for individual events, but I do for family events" or "I don't care about multimedia objects for anything except individuals."

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

No branches or pull requests

1 participant