PLCnext API Documentation 26.6.0.38
IAddressConversionService.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
8#include "Arp/Base/Rsc/Commons/Rsc.hpp"
9#include "Arp/Base/Rsc/Commons/IRscService.hpp"
10#include "Arp/Io/ProfinetStack/Controller/Services/ProfinetAddress.hpp"
11
12// DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED BY IAddressConversionService.cs
13
15{
16
17using namespace Arp::Base::Rsc::Commons;
18
28class ARP_EXPORT IAddressConversionService : public IRscService
29{
30public: // usings
31 using Ptr = std::shared_ptr<IAddressConversionService>;
32
33public: // construction/destruction
36
37public: // static policy operation
38 static IRscServiceProxyFactory& GetProxyFactory(void);
39
40public: // abstract operations
51 virtual uint32 AddressToId(const ProfinetAddress& address, uint32& id) = 0;
52
63 virtual uint32 IdToAddress(uint32 id, ProfinetAddress& address) = 0;
64};
65
66} // end of namespace Arp::Io::ProfinetStack::Controller::Services
This is the base interface of all Rsc services.
Definition: IRscService.hpp:22
std::shared_ptr< IRscService > Ptr
The shared_ptr type of IRscService.
Definition: IRscService.hpp:25
Interface for service proxy factories to create service proxies used by RSC clients.
Definition: IRscServiceProxyFactory.hpp:22
Use this service for conversion of addresses and node IDs
Definition: IAddressConversionService.hpp:29
virtual uint32 AddressToId(const ProfinetAddress &address, uint32 &id)=0
Convert an address to a node ID
IAddressConversionService(void)=default
Constructs an IAddressConversionService instance.
virtual uint32 IdToAddress(uint32 id, ProfinetAddress &address)=0
Convert a node id to an address
This structure contains all parameters of a PROFINET address
Definition: ProfinetAddress.hpp:25
std::uint32_t uint32
The Arp unsigned integer type of 4 byte size.
Definition: PrimitiveTypes.hpp:33
Namespace for Profinet I/O controller services