PLCnext API Documentation 23.0.2.9
IDeviceStatusService.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
8#include "Arp/Device/Interface/Services/DeviceStatusServiceProxyFactory.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 IDeviceStatusService.cs
17
18namespace Arp { namespace Device { namespace Interface { namespace Services
19{
20
21using namespace Arp;
22using namespace Arp::System::Rsc::Services;
23
31{
32public: // typedefs
33 using Ptr = std::shared_ptr<IDeviceStatusService>;
34 using GetItemsIdentifiersDelegate = delegate<void(IRscWriteEnumerator<RscString<512>>&)>;
35 using GetItemsResultDelegate = delegate<void(IRscReadEnumerator<RscVariant<512>>&)>;
36
37public: // construction/destruction
39 IDeviceStatusService(void) = default;
40
41public: // static policy operation
42 static IRscServiceProxyFactory& GetProxyFactory(void);
43
44public: // abstract operations
48 virtual RscVariant<512> GetItem(const RscString<512>& identifier) = 0;
49
53 virtual void GetItems(GetItemsIdentifiersDelegate identifiersDelegate, GetItemsResultDelegate resultDelegate) = 0;
54};
55
57// inline methods of class IDeviceStatusService
58inline IRscServiceProxyFactory& IDeviceStatusService::GetProxyFactory()
59{
60 return DeviceStatusServiceProxyFactory::GetInstance();
61}
62
63}}}} // end of namespace Arp::Device::Interface::Services
This service provides operations to read status information from the device.
Definition: IDeviceStatusService.hpp:31
IDeviceStatusService(void)=default
Constructs an IDeviceStatusService instance.
virtual RscVariant< 512 > GetItem(const RscString< 512 > &identifier)=0
This operation reads a single status information item.
virtual void GetItems(GetItemsIdentifiersDelegate identifiersDelegate, GetItemsResultDelegate resultDelegate)=0
This operation reads a list of status information items.
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
Root namespace for the PLCnext API