PLCnext API Documentation  22.9.0.33
IDeviceInfoService.hpp
1 //
3 // Copyright PHOENIX CONTACT Electronics GmbH
4 //
6 #pragma once
7 #include "Arp/System/Core/Arp.h"
8 #include "Arp/Device/Interface/Services/DeviceInfoServiceProxyFactory.hpp"
9 #include "Arp/System/Core/delegate.hxx"
10 #include "Arp/System/Rsc/Services/IRscReadEnumerator.hxx"
11 #include "Arp/System/Rsc/Services/IRscService.hpp"
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 
29 {
30 public: // typedefs
31  using Ptr = std::shared_ptr<IDeviceInfoService>;
32  using GetItemsIdentifiersDelegate = delegate<void(IRscWriteEnumerator<RscString<512>>&)>;
33  using GetItemsResultDelegate = delegate<void(IRscReadEnumerator<RscVariant<512>>&)>;
34 
35 public: // construction/destruction
37  IDeviceInfoService(void) = default;
38 
39 public: // static policy operation
40  static IRscServiceProxyFactory& GetProxyFactory(void);
41 
42 public: // abstract operations
48  virtual RscVariant<512> GetItem(const RscString<512>& identifier) = 0;
49 
55  virtual void GetItems(GetItemsIdentifiersDelegate identifiersDelegate, GetItemsResultDelegate resultDelegate) = 0;
56 };
57 
59 // inline methods of class IDeviceInfoService
60 inline IRscServiceProxyFactory& IDeviceInfoService::GetProxyFactory()
61 {
62  return DeviceInfoServiceProxyFactory::GetInstance();
63 }
64 
65 }}}} // end of namespace Arp::Device::Interface::Services
Use this service to read device information.
Definition: IDeviceInfoService.hpp:29
virtual RscVariant< 512 > GetItem(const RscString< 512 > &identifier)=0
Read a single information
IDeviceInfoService(void)=default
Constructs an IDeviceInfoService instance.
virtual void GetItems(GetItemsIdentifiersDelegate identifiersDelegate, GetItemsResultDelegate resultDelegate)=0
Read a list of information
Interface for reading an array or an enumerator. For regular enumerators UndefinedArrayLength is used...
Definition: IRscReadEnumerator.hxx:21
Base interface for all Rsc service interface.
Definition: IRscService.hpp:19
Interface for writing an array or an enumerator. For regular enumerators UndefinedArrayLength is used...
Definition: IRscWriteEnumerator.hxx:23
Namespace for classes and interfaces for the Remote Service Call implementation
Definition: IRscReadEnumerator.hxx:10
Root namespace for the PLCnext API