8#include "Arp/Device/Interface/Services/AccessErrorCode.hpp"
9#include "Arp/Device/Interface/Services/DeviceSettingItem.hpp"
10#include "Arp/Device/Interface/Services/DeviceSettingResult.hpp"
11#include "Arp/Device/Interface/Services/DeviceSettingsServiceProxyFactory.hpp"
12#include "Arp/System/Core/delegate.hxx"
13#include "Arp/System/Rsc/Services/IRscReadEnumerator.hxx"
14#include "Arp/System/Rsc/Services/IRscService.hpp"
15#include "Arp/System/Rsc/Services/IRscWriteEnumerator.hxx"
16#include "Arp/System/Rsc/Services/RscString.hxx"
20namespace Arp {
namespace Device {
namespace Interface {
namespace Services
38 using Ptr = std::shared_ptr<IDeviceSettingsService>;
49 static IRscServiceProxyFactory& GetProxyFactory(
void);
60 virtual void ReadValues(ReadValuesSettingsDelegate settingsDelegate, ReadValuesResultDelegate resultDelegate) = 0;
71 virtual void WriteValues(WriteValuesSettingItemsDelegate settingItemsDelegate, WriteValuesResultDelegate resultDelegate) = 0;
76inline IRscServiceProxyFactory& IDeviceSettingsService::GetProxyFactory()
78 return DeviceSettingsServiceProxyFactory::GetInstance();
Container for a (relative) setting identifier with its value.
Definition: DeviceSettingItem.hpp:32
Container for a combination of an error code and a value which is a result for a read operation to a ...
Definition: DeviceSettingResult.hpp:30
This service provides operations to read and write settings from resp. to the device.
Definition: IDeviceSettingsService.hpp:36
virtual AccessErrorCode WriteValue(const DeviceSettingItem &settingItem)=0
This operation writes a single setting.
IDeviceSettingsService(void)=default
Constructs an IDeviceSettingsService instance.
virtual void WriteValues(WriteValuesSettingItemsDelegate settingItemsDelegate, WriteValuesResultDelegate resultDelegate)=0
This operation writes a list of settings.
virtual DeviceSettingResult ReadValue(const RscString< 512 > &setting)=0
This operation reads a single setting.
virtual void ReadValues(ReadValuesSettingsDelegate settingsDelegate, ReadValuesResultDelegate resultDelegate)=0
This operation reads a list of settings.
Interface for reading an array or an enumerator. For regular enumerators UndefinedArrayLength is used...
Definition: IRscReadEnumerator.hxx:21
Base interface for all Rsc service interface.
Definition: IRscService.hpp:20
Interface for writing an array or an enumerator. For regular enumerators UndefinedArrayLength is used...
Definition: IRscWriteEnumerator.hxx:23
AccessErrorCode
Enumeration for error codes returned from Device.Interface.Services.
Definition: AccessErrorCode.hpp:19
Namespace for classes and interfaces for the Remote Service Call implementation
Root namespace for the PLCnext API