PLCnext API Documentation  21.0.0.35466
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  typedef std::shared_ptr<IDeviceInfoService> Ptr;
31  typedef delegate<void(IRscWriteEnumerator<RscString<512>>&)> GetItemsIdentifiersDelegate;
32  typedef delegate<void(IRscReadEnumerator<RscVariant<512>>&)> GetItemsResultDelegate;
33 
34 public: // construction/destruction
36  IDeviceInfoService(void);
38  virtual ~IDeviceInfoService(void);
39 
40 public: // static policy operation
41  static IRscServiceProxyFactory& GetProxyFactory(void);
42 
43 public: // abstract operations
49  virtual RscVariant<512> GetItem(const RscString<512>& identifier) = 0;
50 
56  virtual void GetItems(GetItemsIdentifiersDelegate identifiersDelegate, GetItemsResultDelegate resultDelegate) = 0;
57 
58 private: // deleted methods (for non-copyable classes)
59  IDeviceInfoService(const IDeviceInfoService& arg) = delete;
60  IDeviceInfoService& operator=(const IDeviceInfoService& arg) = delete;
61 };
62 
64 // inline methods of class IDeviceInfoService
66 {
67 }
68 
70 {
71 }
72 
73 inline IRscServiceProxyFactory& IDeviceInfoService::GetProxyFactory()
74 {
75  return DeviceInfoServiceProxyFactory::GetInstance();
76 }
77 
78 }}}} // end of namespace Arp::Device::Interface::Services
IDeviceInfoService(void)
Constructs an IDeviceInfoService instance.
Definition: IDeviceInfoService.hpp:65
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
virtual ~IDeviceInfoService(void)
Destructs this instance and frees all resouces.
Definition: IDeviceInfoService.hpp:69
Root namespace for the PLCnext API
Base interface for all Rsc service interface.
Definition: IRscService.hpp:18