PlatformUnitComponentPlugin.cpp
Go to the documentation of this file.
1
#include "
PlatformUnitComponentPlugin.h
"
2
3
#include <
ArmarXCore/core/Component.h
>
4
5
6
namespace
armarx
7
{
8
namespace
plugins
9
{
10
11
void
PlatformUnitComponentPlugin::preOnInitComponent
()
12
{
13
parent<Component>().usingProxyFromProperty(PROPERTY_NAME);
14
}
15
16
void
PlatformUnitComponentPlugin::preOnConnectComponent
()
17
{
18
parent<Component>().getProxyFromProperty(_platformUnit, PROPERTY_NAME);
19
}
20
21
void
PlatformUnitComponentPlugin::postCreatePropertyDefinitions
(
armarx::PropertyDefinitionsPtr
& properties)
22
{
23
if
(!properties->hasDefinition(PROPERTY_NAME))
24
{
25
properties->defineRequiredProperty<std::string>(
26
PROPERTY_NAME,
27
"Name of the PlatformUnit"
);
28
}
29
}
30
31
PlatformUnitInterfacePrx
PlatformUnitComponentPlugin::getPlatformUnit
()
32
{
33
return
_platformUnit;
34
}
35
36
37
}
38
}
39
40
namespace
armarx
41
{
42
43
PlatformUnitComponentPluginUser::PlatformUnitComponentPluginUser
()
44
{
45
addPlugin
(plugin);
46
}
47
48
PlatformUnitInterfacePrx
PlatformUnitComponentPluginUser::getPlatformUnit
()
49
{
50
return
plugin->
getPlatformUnit
();
51
}
52
53
54
}
55
56
armarx::PlatformUnitComponentPluginUser::PlatformUnitComponentPluginUser
PlatformUnitComponentPluginUser()
Definition:
PlatformUnitComponentPlugin.cpp:43
armarx::plugins::PlatformUnitComponentPlugin::preOnInitComponent
void preOnInitComponent() override
Definition:
PlatformUnitComponentPlugin.cpp:11
armarx::ManagedIceObject::addPlugin
PluginT * addPlugin(const std::string prefix="", ParamsT &&...params)
Definition:
ManagedIceObject.h:182
plugins
armarx::PlatformUnitComponentPluginUser::getPlatformUnit
PlatformUnitInterfacePrx getPlatformUnit()
Definition:
PlatformUnitComponentPlugin.cpp:48
Component.h
armarx::plugins::PlatformUnitComponentPlugin::preOnConnectComponent
void preOnConnectComponent() override
Definition:
PlatformUnitComponentPlugin.cpp:16
armarx::plugins::PlatformUnitComponentPlugin::postCreatePropertyDefinitions
void postCreatePropertyDefinitions(PropertyDefinitionsPtr &properties) override
Definition:
PlatformUnitComponentPlugin.cpp:21
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::plugins::PlatformUnitComponentPlugin::getPlatformUnit
PlatformUnitInterfacePrx getPlatformUnit()
Definition:
PlatformUnitComponentPlugin.cpp:31
PlatformUnitComponentPlugin.h
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition:
ArmarXTimeserver.cpp:28
RobotAPI
libraries
RobotAPIComponentPlugins
PlatformUnitComponentPlugin.cpp
Generated on Sat Oct 12 2024 09:14:11 for armarx_documentation by
1.8.17