2 May 04:27
s5 properties again
From: Peter Amstutz <tetron@...>
Subject: s5 properties again
Newsgroups: gmane.comp.lib.vos.devel
Date: 2008-05-02 02:31:03 GMT
Subject: s5 properties again
Newsgroups: gmane.comp.lib.vos.devel
Date: 2008-05-02 02:31:03 GMT
Some ideas for a new design for properties. Replace the vobject "child list" with a "property map". A property is a slot that holds some value, which can be a basic type (int, string), a compound type (struct, array or map) or a reference to another vobject. Reflection permits iterating over all entries in the property map. Unlike links in the child list, the order of properties is not significant, and two properties of the same name are not allowed. Where order is important, data can be stored in an array property. Paths are still available. For example: /vos/Namespaces/core/Types/String Where "vos" is a vobject "Namespaces" is a map of names to vobject references "core" is a reference to a particular vobject "Classes" is another map, part of "core" "String" is a reference to another vobject Another example: /scene/objects/_2/position/x Where "scene" is a vobject "objects" is a list of vobject references "_2" is the reference at index 2 in the list(Continue reading)
RSS Feed