AffordanceUpdateListener.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 VisionX
17 * @author Peter Kaiser ( peter dot kaiser at kit dot edu )
18 * @date 2015
19 * @copyright http://www.gnu.org/licenses/gpl.txt
20 * GNU General Public License
21 */
22
23#pragma once
24
25#include <mutex>
26
28
29#include <VisionX/interface/components/AffordanceUpdateListener.h>
30
31namespace armarx
32{
33 /**
34 * @class AffordanceUpdateListenerPropertyDefinitions
35 * @brief
36 */
38 {
39 public:
42 {
43 //defineRequiredProperty<std::string>("PropertyName", "Description");
44 //defineOptionalProperty<std::string>("PropertyName", "DefaultValue", "Description");
45 }
46 };
47
48 /**
49 * @class AffordanceUpdateListener
50 * @ingroup VisionX-Components
51 * @brief A brief description
52 *
53 *
54 * Detailed Description
55 */
57 virtual public armarx::Component,
58 virtual public armarx::AffordanceUpdateListenerInterface
59 {
60 public:
61 /**
62 * @see armarx::ManagedIceObject::getDefaultName()
63 */
64 std::string
65 getDefaultName() const override
66 {
67 return "AffordanceUpdateListener";
68 }
69
70 protected:
71 /**
72 * @see armarx::ManagedIceObject::onInitComponent()
73 */
74 void onInitComponent() override;
75
76 /**
77 * @see armarx::ManagedIceObject::onConnectComponent()
78 */
79 void onConnectComponent() override;
80
81 /**
82 * @see armarx::ManagedIceObject::onDisconnectComponent()
83 */
84 void onDisconnectComponent() override;
85
86 /**
87 * @see armarx::ManagedIceObject::onExitComponent()
88 */
89 void onExitComponent() override;
90
91 /**
92 * @see PropertyUser::createPropertyDefinitions()
93 */
95
96 void reportNewAffordances(const Ice::Current& c = Ice::emptyCurrent) override;
97 bool newAffordancesAvailable(const Ice::Current& c = Ice::emptyCurrent) override;
98
99 protected:
101 bool news;
102 };
103} // namespace armarx
constexpr T c
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
bool newAffordancesAvailable(const Ice::Current &c=Ice::emptyCurrent) override
std::string getDefaultName() const override
void reportNewAffordances(const Ice::Current &c=Ice::emptyCurrent) override
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
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.