PLCnext API Documentation 23.6.0.37
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
34{
35public: // typedefs
36 using Ptr = std::shared_ptr<IDeviceStatusService>;
37 using GetItemsIdentifiersDelegate = delegate<void(IRscWriteEnumerator<RscString<512>>&)>;
38 using GetItemsResultDelegate = delegate<void(IRscReadEnumerator<RscVariant<512>>&)>;
39
40public: // construction/destruction
42 IDeviceStatusService(void) = default;
43
44public: // static policy operation
45 static IRscServiceProxyFactory& GetProxyFactory(void);
46
47public: // abstract operations
51 virtual RscVariant<512> GetItem(const RscString<512>& identifier) = 0;
52
56 virtual void GetItems(GetItemsIdentifiersDelegate identifiersDelegate, GetItemsResultDelegate resultDelegate) = 0;
57};
58
60// inline methods of class IDeviceStatusService
61inline IRscServiceProxyFactory& IDeviceStatusService::GetProxyFactory()
62{
63 return DeviceStatusServiceProxyFactory::GetInstance();
64}
65
66}}}} // end of namespace Arp::Device::Interface::Services
This service provides operations to read status information from the device.
Definition: IDeviceStatusService.hpp:34
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:20
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