PLCnext API Documentation 23.6.0.37
IAddressConversionService.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
8#include "Arp/Io/ProfinetStack/Controller/Services/AddressConversionServiceProxyFactory.hpp"
9#include "Arp/Io/ProfinetStack/Controller/Services/ProfinetAddress.hpp"
10#include "Arp/System/Rsc/Services/IRscService.hpp"
11
12// DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED BY IAddressConversionService.cs
13
14namespace Arp { namespace Io { namespace ProfinetStack { namespace Controller { namespace Services
15{
16
17using namespace Arp;
18using namespace Arp::System::Rsc::Services;
19
28{
29public: // typedefs
30 using Ptr = std::shared_ptr<IAddressConversionService>;
31
32public: // construction/destruction
35
36public: // static policy operation
37 static IRscServiceProxyFactory& GetProxyFactory(void);
38
39public: // abstract operations
50 virtual uint32 AddressToId(const ProfinetAddress& address, uint32& id) = 0;
51
62 virtual uint32 IdToAddress(uint32 id, ProfinetAddress& address) = 0;
63};
64
66// inline methods of class IAddressConversionService
67inline IRscServiceProxyFactory& IAddressConversionService::GetProxyFactory()
68{
69 return AddressConversionServiceProxyFactory::GetInstance();
70}
71
72}}}}} // end of namespace Arp::Io::ProfinetStack::Controller::Services
Use this service for conversion of addresses and node IDs
Definition: IAddressConversionService.hpp:28
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
Base interface for all Rsc service interface.
Definition: IRscService.hpp:20
std::uint32_t uint32
The Arp unsigned integer type of 4 byte size.
Definition: PrimitiveTypes.hpp:36
Namespace for classes and interfaces for the Remote Service Call implementation
Root namespace for the PLCnext API