10-04-2016, 06:06 PM
(This post was last modified: 10-04-2016, 06:08 PM by Rick Johnson.)
White flag: I thought this would have been intuitive, but even if I find a syntax that builds, it won't run without a memory error. It's not that easy to cast iter.value() to something useful, even if it's only a simple string or number. Trying to cast an std::auto_ptr<PrefData> to an std::auto_ptr<StringPref> typically fails to build when system memory headers refuse to acknowledge the typecast. Am I running down a dead-end alley with that approach?
The header notes make frequent references to "JSON node to get from the top-level" which makes me question the relevance of a multi-level tree structure, at least as far as an iterator can see. Is a record that contains a few strings considered a Dictionary type that should be parsed in a separate operation?
So far, iter.value() has been useless; my fallback has been dict.member(name, data), but I can't be certain no two fields will have the same name, especially if it parses more than one level. E.g., every SQL record will have an ID no., unique within its own table. Is there any syntax that simply pulls a string or number from iter.value()?
I'd really appreciate any help on this. I feel I'm so close to reaching the next level, but just can't make that leap. Thanks!
The header notes make frequent references to "JSON node to get from the top-level" which makes me question the relevance of a multi-level tree structure, at least as far as an iterator can see. Is a record that contains a few strings considered a Dictionary type that should be parsed in a separate operation?
So far, iter.value() has been useless; my fallback has been dict.member(name, data), but I can't be certain no two fields will have the same name, especially if it parses more than one level. E.g., every SQL record will have an ID no., unique within its own table. Is there any syntax that simply pulls a string or number from iter.value()?
I'd really appreciate any help on this. I feel I'm so close to reaching the next level, but just can't make that leap. Thanks!