8 #include "Arp/System/Rsc/Services/IRscService.hpp" 9 #include "DataAccessServiceProxyFactory.hpp" 10 #include "Arp/System/Core/delegate.hxx" 11 #include "Arp/System/Rsc/Services/IRscReadEnumerator.hxx" 12 #include "Arp/System/Rsc/Services/IRscWriteEnumerator.hxx" 13 #include "Arp/System/Rsc/Services/RscString.hxx" 14 #include "DataAccessError.hpp" 15 #include "ReadItem.hpp" 16 #include "WriteItem.hpp" 20 namespace Arp {
namespace Plc {
namespace Gds {
namespace Services
72 using Ptr = std::shared_ptr<IDataAccessService>;
73 using ReadPortNamesDelegate = delegate<void(IRscWriteEnumerator<RscString<512>>&)>;
74 using ReadResultDelegate = delegate<void(IRscReadEnumerator<ReadItem>&)>;
75 using WriteDataDelegate = delegate<void(IRscWriteEnumerator<WriteItem>&)>;
76 using WriteResultDelegate = delegate<void(IRscReadEnumerator<DataAccessError>&)>;
83 static IRscServiceProxyFactory& GetProxyFactory(
void);
127 virtual void Read(ReadPortNamesDelegate portNamesDelegate, ReadResultDelegate resultDelegate) = 0;
170 virtual void Write(WriteDataDelegate dataDelegate, WriteResultDelegate resultDelegate) = 0;
175 inline IRscServiceProxyFactory& IDataAccessService::GetProxyFactory()
177 return DataAccessServiceProxyFactory::GetInstance();
Namespace for classes and interfaces for the Remote Service Call implementation
Definition: IRscReadEnumerator.hxx:9
Stores the data to be read, written by the controller and a possible data access error.
Definition: ReadItem.hpp:26
DataAccessError
This enumeration contains the possible data access errors.
Definition: DataAccessError.hpp:20
Root namespace for the PLCnext API
Base interface for all Rsc service interface.
Definition: IRscService.hpp:18
Stores the to be written data and the related variable name to be write to.
Definition: WriteItem.hpp:26
Services for the direct data access.
Definition: IDataAccessService.hpp:69