AronComponentConfigExample.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * ArmarX is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * ArmarX is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * @package robdekon
17  * @author Christoph Pohl ( christoph dot pohl at kit dot edu )
18  * @date 06.09.22
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 #pragma once
24 
26 #include <RobotAPI/components/AronComponentConfigExample/aron/ComponentConfig.aron.generated.h>
28 
29 namespace armarx
30 {
31 
34  {
35  public:
37  };
38 
40  virtual public armarx::Component
41  {
42  public:
43  std::string getDefaultName() const override;
44 
45  /// @see armarx::ManagedIceObject::onInitComponent()
46  void onInitComponent() override;
47 
48  /// @see armarx::ManagedIceObject::onConnectComponent()
49  void onConnectComponent() override;
50 
51  /// @see armarx::ManagedIceObject::onDisconnectComponent()
52  void onDisconnectComponent() override;
53 
54  /// @see armarx::ManagedIceObject::onExitComponent()
55  void onExitComponent() override;
56 
57  /// @see PropertyUser::createPropertyDefinitions()
59 
61  private:
65  aron_component_config_plugin_{nullptr};
66  std::mutex write_mutex;
67 
68  };
69 }
armarx::AronComponentConfigExample::onInitComponent
void onInitComponent() override
Definition: AronComponentConfigExample.cpp:32
armarx::AronComponentConfigExamplePropertyDefinitions
Definition: AronComponentConfigExample.h:32
armarx::AronComponentConfigExample
Definition: AronComponentConfigExample.h:39
armarx::AronComponentConfigExample::getDefaultName
std::string getDefaultName() const override
Retrieve default name of component.
Definition: AronComponentConfigExample.cpp:104
armarx::PropertyDefinitionContainer::prefix
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
Definition: PropertyDefinitionContainer.h:333
armarx::AronComponentConfigExample::onConnectComponent
void onConnectComponent() override
Definition: AronComponentConfigExample.cpp:38
armarx::AronComponentConfigExample::onExitComponent
void onExitComponent() override
Definition: AronComponentConfigExample.cpp:73
std::experimental::fundamentals_v2::observer_ptr
Definition: ManagedIceObject.h:53
ComponentPlugin.h
armarx::AronComponentConfigExample::onDisconnectComponent
void onDisconnectComponent() override
Definition: AronComponentConfigExample.cpp:68
armarx::AronComponentConfigExample::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: AronComponentConfigExample.cpp:78
Component.h
armarx::Component
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition: Component.h:95
armarx::AronComponentConfigExamplePropertyDefinitions::AronComponentConfigExamplePropertyDefinitions
AronComponentConfigExamplePropertyDefinitions(std::string prefix)
Definition: AronComponentConfigExample.cpp:115
armarx::ComponentPropertyDefinitions
Default component property definition container.
Definition: Component.h:70
armarx::AronComponentConfigExample::AronComponentConfigExample
AronComponentConfigExample()
Definition: AronComponentConfigExample.cpp:109
IceUtil::Handle< class PropertyDefinitionContainer >
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::SimplePeriodicTask
Usage:
Definition: ApplicationNetworkStats.h:32