Hi Robert,

On 5/01/10 9:26 PM, Robert Osfield wrote:
> I've done a quick read of you proposal and it sounds good.  For
> convenience perhaps adding a getIntProperty(), getFloatProperty() etc.
> methods might be appropriate, or perhaps one could use the bool
> getProperty(const std::string&, Property) interface that I adopted in
> osg::ArgumentParser, where Property is a temporary helper object.

Sorry for the delay, I'm down under moving and didn't get around to this.

I understand where you're going with the convenience functions, but I was 
hoping to find a
more generic way to store data types which is why I came up with the template 
class.  I'll
try to work the interface into a more user friendly version.

Another thing that I realized is that the template I currently have makes it a 
bit
difficult to write the properties out to file.  But maybe I'm missing 
something, so if
anyone has a clever idea of how to serialize something like:

template <typename T> class Foo {
 T _data;
}

I'd be interested to learn about that.  The output should contain the type as a 
string and
the value, so that it can be parsed and recreated again.

Cheers,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to