SMACC
Loading...
Searching...
No Matches
smacc_component.cpp
Go to the documentation of this file.
1/*****************************************************************************************************************
2 * ReelRobotix Inc. - Software License Agreement Copyright (c) 2018
3 * Authors: Pablo Inigo Blasco, Brett Aldrich
4 *
5 ******************************************************************************************************************/
6#include <smacc/component.h>
8namespace smacc
9{
10
12{
13}
14
16 : owner_(nullptr)
17{
18}
19
21{
22 owner_ = owner;
23 this->onInitialize();
24}
25
27{
28
29}
30
32{
33 stateMachine_ = stateMachine;
34}
35
36std::string ISmaccComponent::getName() const
37{
38 std::string keyname = demangleSymbol(typeid(*this).name());
39 return keyname;
40}
41} // namespace smacc
virtual void initialize(ISmaccClient *owner)
virtual std::string getName() const
ISmaccClient * owner_
Definition: component.h:57
ISmaccStateMachine * stateMachine_
Definition: component.h:55
virtual void onInitialize()
void setStateMachine(ISmaccStateMachine *stateMachine)
std::string demangleSymbol()
Definition: introspection.h:75