PLCnext API Documentation  21.0.0.35466
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  typedef std::shared_ptr<IAddressConversionService> Ptr;
27 
28 public: // construction/destruction
32  virtual ~IAddressConversionService(void);
33 
34 public: // static policy operation
35  static IRscServiceProxyFactory& GetProxyFactory(void);
36 
37 public: // abstract operations
48  virtual uint32 AddressToId(const ProfinetAddress& address, uint32& id) = 0;
49 
60  virtual uint32 IdToAddress(uint32 id, ProfinetAddress& address) = 0;
61 
62 private: // deleted methods (for non-copyable classes)
64  IAddressConversionService& operator=(const IAddressConversionService& arg) = delete;
65 };
66 
68 // inline methods of class IAddressConversionService
70 {
71 }
72 
74 {
75 }
76 
77 inline IRscServiceProxyFactory& IAddressConversionService::GetProxyFactory()
78 {
79  return AddressConversionServiceProxyFactory::GetInstance();
80 }
81 
82 }}}}} // end of namespace Arp::Io::ProfinetStack::Controller::Services
This structure contains all parameters of a PROFINET address
Definition: ProfinetAddress.hpp:24
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
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
IAddressConversionService(void)
Constructs an IAddressConversionService instance.
Definition: IAddressConversionService.hpp:69
virtual ~IAddressConversionService(void)
Destructs this instance and frees all resouces.
Definition: IAddressConversionService.hpp:73