Canvas: bug fixing and add some helpers.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user