PLCnext API Documentation 23.0.2.9
IPlcInfoService.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
8#include <vector>
9#include "Arp/Plc/Domain/Services/PlcInfoId.hpp"
10#include "Arp/Plc/Domain/Services/PlcInfoServiceProxyFactory.hpp"
11#include "Arp/System/Rsc/Services/IRscService.hpp"
12#include "Arp/System/Rsc/Services/RscVariant.hxx"
13
14// DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED BY IPlcInfoService.cs
15
16namespace Arp { namespace Plc { namespace Domain { namespace Services
17{
18
19using namespace Arp;
20using namespace Arp::System::Rsc::Services;
21
27{
28public: // typedefs
29 using Ptr = std::shared_ptr<IPlcInfoService>;
30
31public: // construction/destruction
33 IPlcInfoService(void) = default;
34
35public: // static policy operation
36 static IRscServiceProxyFactory& GetProxyFactory(void);
37
38public: // abstract operations
44 virtual RscVariant<256> GetInfo(PlcInfoId identifier) = 0;
45
51 virtual std::vector<RscVariant<256>> GetInfos(const std::vector<PlcInfoId>& identifiers) = 0;
52};
53
55// inline methods of class IPlcInfoService
56inline IRscServiceProxyFactory& IPlcInfoService::GetProxyFactory()
57{
58 return PlcInfoServiceProxyFactory::GetInstance();
59}
60
61}}}} // end of namespace Arp::Plc::Domain::Services
Provides informations about the Plc (realtime) project.
Definition: IPlcInfoService.hpp:27
virtual RscVariant< 256 > GetInfo(PlcInfoId identifier)=0
Gets the specified info from the Plc project.
IPlcInfoService(void)=default
Constructs an IPlcInfoService instance.
virtual std::vector< RscVariant< 256 > > GetInfos(const std::vector< PlcInfoId > &identifiers)=0
Gets the specified infos from the Plc project.
Base interface for all Rsc service interface.
Definition: IRscService.hpp:19
PlcInfoId
Collects all identifiers of Plc informations to be read by IPlcInfoService.
Definition: PlcInfoId.hpp:19
Namespace for classes and interfaces for the Remote Service Call implementation
Root namespace for the PLCnext API