175 const std::string
Format()
const;
210 m_keyCode = aExtraParam & ~MD_MODIFIER_MASK;
464 template<typename T, std::enable_if_t<!std::is_pointer<T>::value>* =
nullptr >
469 wxCHECK_MSG(
m_param.
has_value(), T(),
"Attempted to get a parameter from an event with "
474 param = ki::any_cast<T>(
m_param );
478 wxCHECK_MSG(
false, T(), wxString::Format(
"Requested parameter type %s from event "
479 "with parameter type %s.",
490 template<typename T, std::enable_if_t<std::is_pointer<T>::value>* =
nullptr>
495 wxCHECK_MSG(
m_param.
has_value(), param,
"Attempted to get a parameter from an event with "
500 param = ki::any_cast<T>(
m_param );
504 wxCHECK_MSG(
false, param, wxString::Format(
"Requested parameter type %s from event "
505 "with parameter type %s.",
670 const std::string
Format()
const;
677 const std::string
Names()
const;
683 if( event.Matches( aEvent ) )
Represent a set of changes (additions, deletions or modifications) of a data model (e....
A type-safe container of any type.
bool has_value() const noexcept
Report whether there is a contained object or not.
const std::type_info & type() const noexcept
The typeid of the contained object, or typeid(void) if empty.
Exception class thrown by a failed any_cast.
An implementation of std::any_cast, which uses type_info::hash_code to check validity of cast types.