PLCnext API Documentation  22.0.0.43
IDeviceInfoService.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 "DeviceInfoServiceProxyFactory.hpp"
10 #include "Arp/System/Core/delegate.hxx"
11 #include "Arp/System/Rsc/Services/IRscReadEnumerator.hxx"
12 #include "Arp/System/Rsc/Services/IRscWriteEnumerator.hxx"
13 #include "Arp/System/Rsc/Services/RscString.hxx"
14 #include "Arp/System/Rsc/Services/RscVariant.hxx"
15 
16 // DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED BY IDeviceInfoService.cs
17 
18 namespace Arp { namespace Device { namespace Interface { namespace Services
19 {
20 
21 using namespace Arp;
22 using namespace Arp::System::Rsc::Services;
23 
28 {
29 public: // typedefs
30  using Ptr = std::shared_ptr<IDeviceInfoService>;
31  using GetItemsIdentifiersDelegate = delegate<void(IRscWriteEnumerator<RscString<512>>&)>;
32  using GetItemsResultDelegate = delegate<void(IRscReadEnumerator<RscVariant<512>>&)>;
33 
34 public: // construction/destruction
36  IDeviceInfoService(void) = default;
37 
38 public: // static policy operation
39  static IRscServiceProxyFactory& GetProxyFactory(void);
40 
41 public: // abstract operations
47  virtual RscVariant<512> GetItem(const RscString<512>& identifier) = 0;
48 
54  virtual void GetItems(GetItemsIdentifiersDelegate identifiersDelegate, GetItemsResultDelegate resultDelegate) = 0;
55 };
56 
58 // inline methods of class IDeviceInfoService
59 inline IRscServiceProxyFactory& IDeviceInfoService::GetProxyFactory()
60 {
61  return DeviceInfoServiceProxyFactory::GetInstance();
62 }
63 
64 }}}} // end of namespace Arp::Device::Interface::Services
Namespace for classes and interfaces for the Remote Service Call implementation
Definition: IRscReadEnumerator.hxx:9
Use this service to read device information.
Definition: IDeviceInfoService.hpp:27
Root namespace for the PLCnext API
Base interface for all Rsc service interface.
Definition: IRscService.hpp:18