PLCnext API Documentation  20.6.0.30321
IDeviceStatusService.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 "DeviceStatusServiceProxyFactory.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 IDeviceStatusService.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<IDeviceStatusService> Ptr;
31  typedef delegate<void(IRscWriteEnumerator<RscString<512>>&)> GetItemsIdentifiersDelegate;
32  typedef delegate<void(IRscReadEnumerator<RscVariant<512>>&)> GetItemsResultDelegate;
33 
34 public: // construction/destruction
38  virtual ~IDeviceStatusService(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  IDeviceStatusService(const IDeviceStatusService& arg) = delete;
60  IDeviceStatusService& operator=(const IDeviceStatusService& arg) = delete;
61 };
62 
64 // inline methods of class IDeviceStatusService
66 {
67 }
68 
70 {
71 }
72 
73 inline IRscServiceProxyFactory& IDeviceStatusService::GetProxyFactory()
74 {
75  return DeviceStatusServiceProxyFactory::GetInstance();
76 }
77 
78 }}}} // end of namespace Arp::Device::Interface::Services
Namespace for classes and interfaces for the Remote Service Call implementation
IDeviceStatusService(void)
Constructs an IDeviceStatusService instance.
Definition: IDeviceStatusService.hpp:65
Root namespace for the PLCnext API
Base interface for all Rsc service interface.
Definition: IRscService.hpp:18
Use this service to read device states.
Definition: IDeviceStatusService.hpp:27
virtual ~IDeviceStatusService(void)
Destructs this instance and frees all resouces.
Definition: IDeviceStatusService.hpp:69