PLCnext API Documentation  22.9.0.33
DataAccessServiceProxy.hpp
1 //
3 // Copyright PHOENIX CONTACT Electronics GmbH
4 //
6 #pragma once
7 #include "Arp/System/Core/Arp.h"
8 #include "Arp/System/Rsc/Services/RscServiceProxyBase.hxx"
9 #include "Arp/Plc/Gds/Services/IDataAccessService.hpp"
10 
11 // DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED BY IDataAccessService.cs
12 
13 namespace Arp { namespace Plc { namespace Gds { namespace Services
14 {
15 
16 using namespace Arp;
17 
19 class DataAccessServiceProxy : public RscServiceProxyBase<IDataAccessService>
20 {
21 public: // construction/destruction
23  DataAccessServiceProxy(RscHandle providerHandle, RscHandle serviceHandle, RscClient& rscClient);
24 
25 public: // IDataAccessService operations
26  ReadItem ReadSingle(const RscString<512>& portName)override;
27  void Read(ReadPortNamesDelegate portNamesDelegate, ReadResultDelegate resultDelegate)override;
28  DataAccessError WriteSingle(const WriteItem& data)override;
29  void Write(WriteDataDelegate dataDelegate, WriteResultDelegate resultDelegate)override;
30 };
31 
32 }}}} // end of namespace Arp::Plc::Gds::Services
Proxy class of service IDataAccessService
Definition: DataAccessServiceProxy.hpp:20
DataAccessServiceProxy(RscHandle providerHandle, RscHandle serviceHandle, RscClient &rscClient)
Constructs an instance of type DataAccessServiceProxy
Stores the data to be read, written by the controller and a possible data access error.
Definition: ReadItem.hpp:27
Stores the to be written data and the related variable name to be write to.
Definition: WriteItem.hpp:27
DataAccessError
This enumeration contains the possible data access errors.
Definition: DataAccessError.hpp:19
Root namespace for the PLCnext API