SMACC
Loading...
Searching...
No Matches
client.cpp
Go to the documentation of this file.
1
2/*****************************************************************************************************************
3 * ReelRobotix Inc. - Software License Agreement Copyright (c) 2018
4 * Authors: Pablo Inigo Blasco, Brett Aldrich
5 *
6 ******************************************************************************************************************/
7
10
11namespace smacc
12{
14{
15}
16
18{
19}
20
22{
23
24}
25
26void ISmaccClient::getComponents(std::vector<std::shared_ptr<ISmaccComponent>> &components)
27{
28 for (auto &ce : components_)
29 {
30 components.push_back(ce.second);
31 }
32}
33
34std::string ISmaccClient::getName() const
35{
36 std::string keyname = demangleSymbol(typeid(*this).name());
37 return keyname;
38}
39
41{
42 stateMachine_ = stateMachine;
43}
44
46{
47 orthogonal_ = orthogonal;
48}
49
51{
53}
54
55} // namespace smacc
virtual ~ISmaccClient()
Definition: client.cpp:17
void getComponents(std::vector< std::shared_ptr< ISmaccComponent > > &components)
Definition: client.cpp:26
void setStateMachine(ISmaccStateMachine *stateMachine)
Definition: client.cpp:40
void setOrthogonal(ISmaccOrthogonal *orthogonal)
Definition: client.cpp:45
ISmaccOrthogonal * orthogonal_
Definition: smacc_client.h:94
virtual std::string getName() const
Definition: client.cpp:34
ISmaccStateMachine * stateMachine_
Definition: smacc_client.h:93
virtual void initialize()
Definition: client.cpp:21
std::map< ComponentKey, std::shared_ptr< smacc::ISmaccComponent > > components_
Definition: smacc_client.h:78
virtual smacc::introspection::TypeInfo::Ptr getType()
Definition: client.cpp:50
std::shared_ptr< TypeInfo > Ptr
static TypeInfo::Ptr getFromStdTypeInfo(const std::type_info &tid)
std::string demangleSymbol()
Definition: introspection.h:75