29#include <RobotAPI/interface/armem/mns/MemoryNameSystemInterface.h>
50 if (armemPlugin ==
nullptr)
62 readerWriter.registerPropertyDefinitions(properties);
69 if (not armemPlugin->isMemoryNameSystemEnabled())
71 ARMARX_INFO <<
"The memory name system is disabled by user choice via the property."
72 <<
"Reader and writer will not be able to connect to the memory.";
76 readerWriter.connect(memoryNameSystem());
83 return armemPlugin->isMemoryNameSystemEnabled();
106 if (armemPlugin ==
nullptr)
void addPluginDependency(ManagedIceObjectPlugin *dependedOn)
ManagedIceObject & parent()
PluginT * addPlugin(const std::string prefix="", ParamsT &&... params)
friend class ManagedIceObject
The memory name system (MNS) client.
A component plugin offering client-side access to to the working memory system by providing a Memory ...
MemoryNameSystem & getMemoryNameSystemClient()
Get the MNS client.
~ReaderWriterPlugin() override=default
void preOnConnectComponent() override
void postCreatePropertyDefinitions(PropertyDefinitionsPtr &properties) override
ReaderWriterPlugin(ManagedIceObject &parent, const std::string &pre)
#define ARMARX_CHECK(expression)
Shortcut for ARMARX_CHECK_EXPRESSION.
#define ARMARX_CHECK_NOT_NULL(ptr)
This macro evaluates whether ptr is not null and if it turns out to be false it will throw an Express...
#define ARMARX_INFO
The normal logging level.
This file is part of ArmarX.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.