PLCnext API Documentation 23.0.2.9
IDeviceInfoService.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
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
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<IDeviceInfoService>;
34 using GetItemsIdentifiersDelegate = delegate<void(IRscWriteEnumerator<RscString<512>>&)>;
35 using GetItemsResultDelegate = delegate<void(IRscReadEnumerator<RscVariant<512>>&)>;
36
37public: // construction/destruction
39 IDeviceInfoService(void) = default;
40
41public: // static policy operation
42 static IRscServiceProxyFactory& GetProxyFactory(void);
43
44public: // abstract operations
50 virtual RscVariant<512> GetItem(const RscString<512>& identifier) = 0;
51
56 virtual void GetItems(GetItemsIdentifiersDelegate identifiersDelegate, GetItemsResultDelegate resultDelegate) = 0;
57};
58
60// inline methods of class IDeviceInfoService
61inline IRscServiceProxyFactory& IDeviceInfoService::GetProxyFactory()
62{
63 return DeviceInfoServiceProxyFactory::GetInstance();
64}
65
66}}}} // end of namespace Arp::Device::Interface::Services
This service provides operations to read static information from the device.
Definition: IDeviceInfoService.hpp:31
IDeviceInfoService(void)=default
Constructs an IDeviceInfoService instance.
virtual void GetItems(GetItemsIdentifiersDelegate identifiersDelegate, GetItemsResultDelegate resultDelegate)=0
This operation reads several device information items.
virtual RscVariant< 512 > GetItem(const RscString< 512 > &identifier)=0
This operation reads a single device information item.
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