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 #include <opto.h>
28 
29 namespace armarx
30 {
31  /**
32  * @class OptoForcePropertyDefinitions
33  * @brief
34  */
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 :
59  virtual public armarx::Component
60  {
61  public:
62  /**
63  * @see armarx::ManagedIceObject::getDefaultName()
64  */
65  virtual std::string getDefaultName() const
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 }
97 
armarx::PropertyDefinitionContainer::prefix
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
Definition: PropertyDefinitionContainer.h:333
armarx::OptoForcePropertyDefinitions
Definition: OptoForce.h:35
armarx::OptoForce::onConnectComponent
virtual void onConnectComponent()
Definition: OptoForce.cpp:35
armarx::OptoForce::onDisconnectComponent
virtual void onDisconnectComponent()
Definition: OptoForce.cpp:41
armarx::OptoForce::createPropertyDefinitions
virtual armarx::PropertyDefinitionsPtr createPropertyDefinitions()
Definition: OptoForce.cpp:52
armarx::OptoForce
Brief description of class OptoForce.
Definition: OptoForce.h:58
Component.h
armarx::Component
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition: Component.h:95
armarx::OptoForce::getDefaultName
virtual std::string getDefaultName() const
Definition: OptoForce.h:65
armarx::ComponentPropertyDefinitions
Default component property definition container.
Definition: Component.h:70
armarx::OptoForce::onExitComponent
virtual void onExitComponent()
Definition: OptoForce.cpp:47
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::OptoForce::onInitComponent
virtual void onInitComponent()
Definition: OptoForce.cpp:29
armarx::OptoForcePropertyDefinitions::OptoForcePropertyDefinitions
OptoForcePropertyDefinitions(std::string prefix)
Definition: OptoForce.h:39
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28