SkillContext.h
Go to the documentation of this file.
1 #pragma once
2 
3 // ArmarX
5 
6 namespace armarx
7 {
8  namespace skills
9  {
10  /* A virtual base class for skill contexts.
11  * It is not required to use a context for skills but it eases the management of
12  * dependencies and properties for providers */
14  {
15  public:
16  SkillContext() = default;
17 
19  const std::string& prefix){};
20 
21  virtual void onInit(armarx::Component& parent){};
22  virtual void onConnected(armarx::Component& parent){};
23  virtual void onDisconnected(armarx::Component& parent){};
24  virtual void onStopped(armarx::Component& parent){};
25 
26  private:
27  };
28  } // namespace skills
29 } // namespace armarx
skills
This file is part of ArmarX.
armarx::skills::SkillContext::onDisconnected
virtual void onDisconnected(armarx::Component &parent)
Definition: SkillContext.h:23
armarx::skills::SkillContext::defineProperties
virtual void defineProperties(const armarx::PropertyDefinitionsPtr &defs, const std::string &prefix)
Definition: SkillContext.h:18
armarx::skills::SkillContext::onInit
virtual void onInit(armarx::Component &parent)
Definition: SkillContext.h:21
armarx::skills::SkillContext::onConnected
virtual void onConnected(armarx::Component &parent)
Definition: SkillContext.h:22
armarx::skills::SkillContext
Definition: SkillContext.h:13
Component.h
armarx::Component
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition: Component.h:95
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::skills::SkillContext::SkillContext
SkillContext()=default
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::skills::SkillContext::onStopped
virtual void onStopped(armarx::Component &parent)
Definition: SkillContext.h:24