PLCnext API Documentation  20.6.0.30321
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  typedef std::shared_ptr<IAcyclicCommunicationService> Ptr;
29 
30 public: // construction/destruction
34  virtual ~IAcyclicCommunicationService(void);
35 
36 public: // static policy operation
37  static IRscServiceProxyFactory& GetProxyFactory(void);
38 
39 public: // abstract operations
52  virtual RecordResult RecordRead(const RecordParam& recordParam, std::vector<uint8>& data) = 0;
53 
66  virtual RecordResult RecordWrite(const RecordParam& recordParam, const std::vector<uint8>& data) = 0;
67 
68 private: // deleted methods (for non-copyable classes)
70  IAcyclicCommunicationService& operator=(const IAcyclicCommunicationService& arg) = delete;
71 };
72 
74 // inline methods of class IAcyclicCommunicationService
76 {
77 }
78 
80 {
81 }
82 
83 inline IRscServiceProxyFactory& IAcyclicCommunicationService::GetProxyFactory()
84 {
85  return AcyclicCommunicationServiceProxyFactory::GetInstance();
86 }
87 
88 }}}}} // end of namespace Arp::Io::ProfinetStack::Controller::Services
Namespace for classes and interfaces for the Remote Service Call implementation
Use this service for acyclic PROFINET communication
Definition: IAcyclicCommunicationService.hpp:25
Parameter to address a module. Use either the Node ID or the address consisting the station name...
Definition: RecordParam.hpp:25
Root namespace for the PLCnext API
Result of the record service
Definition: RecordResult.hpp:23
IAcyclicCommunicationService(void)
Constructs an IAcyclicCommunicationService instance.
Definition: IAcyclicCommunicationService.hpp:75
Base interface for all Rsc service interface.
Definition: IRscService.hpp:18
virtual ~IAcyclicCommunicationService(void)
Destructs this instance and frees all resouces.
Definition: IAcyclicCommunicationService.hpp:79