PLCnext API Documentation 23.6.0.37
DataAccessServiceProxy.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
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
13namespace Arp { namespace Plc { namespace Gds { namespace Services
14{
15
16using namespace Arp;
17
19class DataAccessServiceProxy : public RscServiceProxyBase<IDataAccessService>
20{
21public: // construction/destruction
23 DataAccessServiceProxy(RscHandle providerHandle, RscHandle serviceHandle, RscClient& rscClient);
24
25public: // 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