OptoForce.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 RobotAPI::ArmarXObjects::OptoForce
17 * @author Simon Ottenhaus ( simon dot ottenhaus at kit dot edu )
18 * @date 2017
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22
23#pragma once
24
25
27
28#include <opto.h>
29
30namespace armarx
31{
32 /**
33 * @class OptoForcePropertyDefinitions
34 * @brief
35 */
37 {
38 public:
41 {
42 //defineRequiredProperty<std::string>("PropertyName", "Description");
43 //defineOptionalProperty<std::string>("PropertyName", "DefaultValue", "Description");
44 }
45 };
46
47 /**
48 * @defgroup Component-OptoForce OptoForce
49 * @ingroup RobotAPI-Components
50 * A description of the component OptoForce.
51 *
52 * @class OptoForce
53 * @ingroup Component-OptoForce
54 * @brief Brief description of class OptoForce.
55 *
56 * Detailed description of class OptoForce.
57 */
58 class OptoForce : virtual public armarx::Component
59 {
60 public:
61 /**
62 * @see armarx::ManagedIceObject::getDefaultName()
63 */
64 virtual std::string
66 {
67 return "OptoForce";
68 }
69
70 protected:
71 /**
72 * @see armarx::ManagedIceObject::onInitComponent()
73 */
74 virtual void onInitComponent();
75
76 /**
77 * @see armarx::ManagedIceObject::onConnectComponent()
78 */
79 virtual void onConnectComponent();
80
81 /**
82 * @see armarx::ManagedIceObject::onDisconnectComponent()
83 */
84 virtual void onDisconnectComponent();
85
86 /**
87 * @see armarx::ManagedIceObject::onExitComponent()
88 */
89 virtual void onExitComponent();
90
91 /**
92 * @see PropertyUser::createPropertyDefinitions()
93 */
95 };
96} // namespace armarx
Default component property definition container.
Definition Component.h:70
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
Definition Component.cpp:46
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition Component.h:94
OptoForcePropertyDefinitions(std::string prefix)
Definition OptoForce.h:39
Brief description of class OptoForce.
Definition OptoForce.h:59
virtual armarx::PropertyDefinitionsPtr createPropertyDefinitions()
Definition OptoForce.cpp:49
virtual void onInitComponent()
Definition OptoForce.cpp:29
virtual void onDisconnectComponent()
Definition OptoForce.cpp:39
virtual void onConnectComponent()
Definition OptoForce.cpp:34
virtual void onExitComponent()
Definition OptoForce.cpp:44
virtual std::string getDefaultName() const
Definition OptoForce.h:65
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.