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"
20 namespace Arp {
namespace Device {
namespace Interface {
namespace Services
33 using Ptr = std::shared_ptr<IDeviceSettingsService>;
44 static IRscServiceProxyFactory& GetProxyFactory(
void);
59 virtual void ReadValues(ReadValuesSettingsDelegate settingsDelegate, ReadValuesResultDelegate resultDelegate) = 0;
74 virtual void WriteValues(WriteValuesSettingItemsDelegate settingItemsDelegate, WriteValuesResultDelegate resultDelegate) = 0;
79 inline IRscServiceProxyFactory& IDeviceSettingsService::GetProxyFactory()
81 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
Use this service to read and write device settings.
Definition: IDeviceSettingsService.hpp:31
virtual AccessErrorCode WriteValue(const DeviceSettingItem &settingItem)=0
Write a single setting
IDeviceSettingsService(void)=default
Constructs an IDeviceSettingsService instance.
virtual void WriteValues(WriteValuesSettingItemsDelegate settingItemsDelegate, WriteValuesResultDelegate resultDelegate)=0
Write a list of settings
virtual DeviceSettingResult ReadValue(const RscString< 512 > &setting)=0
Read a single setting
virtual void ReadValues(ReadValuesSettingsDelegate settingsDelegate, ReadValuesResultDelegate resultDelegate)=0
Read 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:19
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
Definition: IRscReadEnumerator.hxx:10
Root namespace for the PLCnext API