PLCnext API Documentation  21.0.0.35466
DataAccessServiceProxy.hpp
1 //
3 // Copyright PHOENIX CONTACT Electronics GmbH
4 //
6 #pragma once
7 #include "Arp/System/Rsc/Services/RscServiceProxyBase.hxx"
8 #include "IDataAccessService.hpp"
9 
10 // DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED BY IDataAccessService.cs
11 
12 namespace Arp { namespace Plc { namespace Gds { namespace Services
13 {
14 
15 using namespace Arp;
16 
17 class DataAccessServiceProxy : public RscServiceProxyBase<IDataAccessService>
18 {
19 public: // construction/destruction
21  DataAccessServiceProxy(RscHandle providerHandle, RscHandle serviceHandle, RscClient& rscClient);
23  virtual ~DataAccessServiceProxy(void);
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 private: // deleted methods (for non-copyable classes)
33  DataAccessServiceProxy& operator=(const DataAccessServiceProxy& arg) = delete;
34 };
35 
37 // inline methods of class DataAccessServiceProxy
39 {
40 }
41 
42 }}}} // end of namespace Arp::Plc::Gds::Services
Stores the data to be read, written by the controller and a possible data access error.
Definition: ReadItem.hpp:26
Definition: DataAccessServiceProxy.hpp:17
DataAccessError
This enumeration contains the possible data access errors.
Definition: DataAccessError.hpp:20
Root namespace for the PLCnext API
virtual ~DataAccessServiceProxy(void)
Destructs this instance and frees all resouces.
Definition: DataAccessServiceProxy.hpp:38
Stores the to be written data and the related variable name to be write to.
Definition: WriteItem.hpp:26