FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
template<class C , typename F >
PropertyFunctors FB::make_property ( C *  instance,
getter 
)
inline

Generate read-only property functors for use with registerProperty() of FB::JSAPIAuto.

struct X : JSAPIAuto {
long m_state;
long get_state() const { return m_state; }
X() : m_state(StateReady) {
registerProperty("state",
make_property(this, &X::get_state);
}
};
See Also
JSAPI

Definition at line 155 of file PropertyConverter.h.

156  {
157  return PropertyFunctors(
158  FB::detail::properties::getter<C, F>::result::f(instance, f),
159  boost::bind(FB::detail::properties::dummySetter, _1));
160  }