Canvas: bug fixing and add some helpers.

This commit is contained in:
Thomas Geymayer
2013-05-31 19:07:55 +02:00
parent 0f798289f0
commit 2fe9ad595f
9 changed files with 56 additions and 2 deletions
+8
View File
@@ -21,6 +21,7 @@
#include <simgear/props/props.hxx>
#include <boost/call_traits.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
@@ -47,6 +48,13 @@ namespace simgear
SGConstPropertyNode_ptr getProps() const;
SGPropertyNode_ptr getProps();
template<class T>
void set( const std::string& name,
typename boost::call_traits<T>::param_type val )
{
setValue(_node->getNode(name, true), val);
}
virtual void setSelf(const PropertyBasedElementPtr& self);
protected: