PLCnext API Documentation  22.3.0.20
IAddressConversionService.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 "AddressConversionServiceProxyFactory.hpp"
10 #include "ProfinetAddress.hpp"
11 
12 // DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED BY IAddressConversionService.cs
13 
14 namespace Arp { namespace Io { namespace ProfinetStack { namespace Controller { namespace Services
15 {
16 
17 using namespace Arp;
18 using namespace Arp::System::Rsc::Services;
19 
24 {
25 public: // typedefs
26  using Ptr = std::shared_ptr<IAddressConversionService>;
27 
28 public: // construction/destruction
30  IAddressConversionService(void) = default;
31 
32 public: // static policy operation
33  static IRscServiceProxyFactory& GetProxyFactory(void);
34 
35 public: // abstract operations
46  virtual uint32 AddressToId(const ProfinetAddress& address, uint32& id) = 0;
47 
58  virtual uint32 IdToAddress(uint32 id, ProfinetAddress& address) = 0;
59 };
60 
62 // inline methods of class IAddressConversionService
63 inline IRscServiceProxyFactory& IAddressConversionService::GetProxyFactory()
64 {
65  return AddressConversionServiceProxyFactory::GetInstance();
66 }
67 
68 }}}}} // end of namespace Arp::Io::ProfinetStack::Controller::Services
Namespace for classes and interfaces for the Remote Service Call implementation
Definition: IRscReadEnumerator.hxx:9
std::uint32_t uint32
The Arp unsigned integer type of 4 byte size.
Definition: PrimitiveTypes.hpp:35
This structure contains all parameters of a PROFINET address
Definition: ProfinetAddress.hpp:24
Use this service for conversion of addresses and node IDs
Definition: IAddressConversionService.hpp:23
Root namespace for the PLCnext API
Base interface for all Rsc service interface.
Definition: IRscService.hpp:18