PLCnext API Documentation 25.0.2.69
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
26class ARP_EXPORT IAddressConversionService : public IRscService
27{
28public: // usings
29 using Ptr = std::shared_ptr<IAddressConversionService>;
30
31public: // construction/destruction
34
35public: // static policy operation
36 static IRscServiceProxyFactory& GetProxyFactory(void);
37
38public: // abstract operations
49 virtual uint32 AddressToId(const ProfinetAddress& address, uint32& id) = 0;
50
61 virtual uint32 IdToAddress(uint32 id, ProfinetAddress& address) = 0;
62};
63
64} // 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:27
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