RE: Iterating through all nodes and attributes of a wxXmlDocument
Kenneth Porter <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
I wonder if a range adapter might make situations like this easier to code? One might have something like this: for (auto child : node->GetChildrenAsRange()) doSomethingWithNode(child); for (auto attr : node->GetAttributesAsRange()) doSomethingWithAttribute(attr); The adapter classes returned by the new APIs could be very simple child classes of wxNode, defining a constructor, begin(), end(), the preincrement operator, and the dereference operator. The constructor could take an optional filter predicate that skips nodes that don't match the predicate. -- Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. --- You received this message because you are subscribed to the Google Groups "wx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/wx-users/020e2aa1-6f11-43aa-a37b-fd70476449d6%40sewingwitch.com.