FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
template<class T >
template< class T > T * FB::PluginEvent::get ( )
inline

Dynamic cast the pluginEvent to the specified type and throw an exception if it is not a subtype of the specified type.

AttachedEvent *atevt = evt->get<AttachedEvent>();
Exceptions
std::bad_castThrown when invalid argument.
Returns
T*
Since
1.4

Definition at line 60 of file PluginEvent.h.

61  {
62  return boost::polymorphic_cast<T*>(this);
63  }