Discussion:
Emunerating + Saving a tree-like hierarchy into a file
(too old to reply)
Jack
2009-10-25 12:19:47 UTC
Permalink
I'd like to know if there is any good link that teaches
people how to manipulate and save a tree structure into a file..
I am looking for one that can save an object
in-between 2 other objects.
Parent > Data Object members
Then I can save this as
Parent's parent > Parent > Data Object members

Or in case of a sibling
Parent's parent > Parent > Data Object members
other parent > Other Data Object members
This is well-known if you have a copy of DirectX
SDK, the .X file functionalities are what exactly I am looking for...
Thanks
Jack
Igor Tandetnik
2009-10-25 14:43:08 UTC
Permalink
Post by Jack
I'd like to know if there is any good link that teaches
people how to manipulate and save a tree structure into a file..
http://w3schools.com/xml/
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. -- RFC 1925
Jeff Flinn
2009-10-25 17:50:50 UTC
Permalink
Post by Jack
I'd like to know if there is any good link that teaches
people how to manipulate and save a tree structure into a file..
I am looking for one that can save an object
in-between 2 other objects.
Parent > Data Object members
Then I can save this as
Parent's parent > Parent > Data Object members
Or in case of a sibling
Parent's parent > Parent > Data Object members
other parent > Other Data Object members
This is well-known if you have a copy of DirectX
SDK, the .X file functionalities are what exactly I am looking for...
Thanks
Jack
See http://www.boost.org/doc/libs/1_40_0/libs/serialization/doc/index.html

Jeff
Jack
2009-10-26 05:13:51 UTC
Permalink
Thanks Igor and Jeff for your help!
Ben Voigt [C++ MVP]
2009-10-26 17:05:15 UTC
Permalink
Post by Jack
I'd like to know if there is any good link that teaches
people how to manipulate and save a tree structure into a file..
I am looking for one that can save an object
in-between 2 other objects.
Parent > Data Object members
Then I can save this as
Parent's parent > Parent > Data Object members
Or in case of a sibling
Parent's parent > Parent > Data Object members
other parent > Other Data Object members
This is well-known if you have a copy of DirectX
SDK, the .X file functionalities are what exactly I am looking for...
Thanks
Jack
Is it a pure tree, or a graph which might contain cycles? e.g. can two
objects share a pointer to a child (for the DirectX example, this would be
two polygons with the same texture)?
Jack
2009-10-27 10:20:25 UTC
Permalink
Dear Ben,
Post by Ben Voigt [C++ MVP]
Is it a pure tree, or a graph which might contain cycles? e.g. can two
objects share a pointer to a child (for the DirectX example, this would be
two polygons with the same texture)?
Umm. I think yes... but let me come back to this later... :)
Thanks
Jack
Jack
2009-10-27 10:20:25 UTC
Permalink
Dear Ben,
Post by Ben Voigt [C++ MVP]
Is it a pure tree, or a graph which might contain cycles? e.g. can two
objects share a pointer to a child (for the DirectX example, this would be
two polygons with the same texture)?
Umm. I think yes... but let me come back to this later... :)
Thanks
Jack

Loading...