PLCnext API Documentation  21.6.0.46
IAcyclicCommunicationService.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/IRscService.hpp"
9 #include "AcyclicCommunicationServiceProxyFactory.hpp"
10 #include "RecordParam.hpp"
11 #include "RecordResult.hpp"
12 #include <vector>
13 
14 // DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED BY IAcyclicCommunicationService.cs
15 
16 namespace Arp { namespace Io { namespace ProfinetStack { namespace Controller { namespace Services
17 {
18 
19 using namespace Arp;
20 using namespace Arp::System::Rsc::Services;
21 
26 {
27 public: // typedefs
28  using Ptr = std::shared_ptr<IAcyclicCommunicationService>;
29 
30 public: // construction/destruction
32  IAcyclicCommunicationService(void) = default;
33 
34 public: // static policy operation
35  static IRscServiceProxyFactory& GetProxyFactory(void);
36 
37 public: // abstract operations
50  virtual RecordResult RecordRead(const RecordParam& recordParam, std::vector<uint8>& data) = 0;
51 
64  virtual RecordResult RecordWrite(const RecordParam& recordParam, const std::vector<uint8>& data) = 0;
65 };
66 
68 // inline methods of class IAcyclicCommunicationService
69 inline IRscServiceProxyFactory& IAcyclicCommunicationService::GetProxyFactory()
70 {
71  return AcyclicCommunicationServiceProxyFactory::GetInstance();
72 }
73 
74 }}}}} // end of namespace Arp::Io::ProfinetStack::Controller::Services
Namespace for classes and interfaces for the Remote Service Call implementation
Definition: IRscReadEnumerator.hxx:9
Use this service for acyclic PROFINET communication
Definition: IAcyclicCommunicationService.hpp:25
Result of the record service
Definition: RecordResult.hpp:23
Root namespace for the PLCnext API
Base interface for all Rsc service interface.
Definition: IRscService.hpp:18
Parameter to address a module. Use either the Node ID or the address consisting the station name...
Definition: RecordParam.hpp:25