|
SMACC2
|
#include <cb_default_keyboard_behavior.hpp>


Public Member Functions | |
| void | onEntry () |
| template<typename TOrthogonal , typename TSourceObject > | |
| void | onStateOrthogonalAllocation () |
| void | OnKeyPress (char character) |
| void | OnArrowPress (ArrowKey arrow) |
| template<typename TEv > | |
| void | postKeyEvent () |
Public Member Functions inherited from smacc2::SmaccClientBehavior | |
| virtual | ~SmaccClientBehavior () |
| void | onEntry () override |
| void | onExit () override |
Public Member Functions inherited from smacc2::ISmaccClientBehavior | |
| ISmaccClientBehavior () | |
| virtual | ~ISmaccClientBehavior () |
| ISmaccStateMachine * | getStateMachine () |
| std::string | getName () const |
| template<typename SmaccClientType > | |
| void | requiresClient (SmaccClientType *&storage) |
| template<typename SmaccComponentType > | |
| void | requiresComponent (SmaccComponentType *&storage, ComponentRequirement requirementType=ComponentRequirement::SOFT) |
| template<typename SmaccComponentType > | |
| void | requiresComponent (std::string name, SmaccComponentType *&storage, ComponentRequirement requirementType=ComponentRequirement::SOFT) |
| virtual void | executeOnEntry () |
| virtual void | executeOnExit () |
Public Attributes | |
| components::CpKeyboardListener1 * | cpSubscriber1 |
| std::function< void(char)> | postEventKeyPress |
| std::function< void(ArrowKey)> | postEventArrowPress |
Additional Inherited Members | |
Protected Member Functions inherited from smacc2::ISmaccClientBehavior | |
| virtual void | runtimeConfigure () |
| template<typename EventType > | |
| void | postEvent (const EventType &ev) |
| template<typename EventType > | |
| void | postEvent () |
| ISmaccState * | getCurrentState () |
| virtual void | dispose () |
| virtual rclcpp::Node::SharedPtr | getNode () const |
| virtual rclcpp::Logger | getLogger () const |
Definition at line 24 of file cb_default_keyboard_behavior.hpp.
|
inline |
Definition at line 119 of file cb_default_keyboard_behavior.hpp.
References postEventArrowPress.
Referenced by onEntry().

|
inlinevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Definition at line 31 of file cb_default_keyboard_behavior.hpp.
References OnArrowPress(), cl_keyboard::components::CpKeyboardListener1::OnArrowPress(), OnKeyPress(), cl_keyboard::components::CpKeyboardListener1::OnKeyPress(), and smacc2::ISmaccClientBehavior::requiresComponent().

|
inline |
Definition at line 117 of file cb_default_keyboard_behavior.hpp.
References postEventKeyPress.
Referenced by onEntry().

|
inline |
Definition at line 39 of file cb_default_keyboard_behavior.hpp.
References cl_keyboard::Down, cl_keyboard::Left, postEventArrowPress, postEventKeyPress, postKeyEvent(), cl_keyboard::Right, and cl_keyboard::Up.

|
inline |
Definition at line 122 of file cb_default_keyboard_behavior.hpp.
References smacc2::introspection::demangleSymbol(), smacc2::ISmaccClientBehavior::getLogger(), and smacc2::ISmaccClientBehavior::postEvent().
Referenced by onStateOrthogonalAllocation().


| components::CpKeyboardListener1* cl_keyboard::CbDefaultKeyboardBehavior::cpSubscriber1 |
Definition at line 27 of file cb_default_keyboard_behavior.hpp.
| std::function<void(ArrowKey)> cl_keyboard::CbDefaultKeyboardBehavior::postEventArrowPress |
Definition at line 29 of file cb_default_keyboard_behavior.hpp.
Referenced by OnArrowPress(), and onStateOrthogonalAllocation().
| std::function<void(char)> cl_keyboard::CbDefaultKeyboardBehavior::postEventKeyPress |
Definition at line 28 of file cb_default_keyboard_behavior.hpp.
Referenced by OnKeyPress(), and onStateOrthogonalAllocation().