PLCnext API Documentation 24.0.0.71
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
30{
31public: // typedefs
32 using Ptr = std::shared_ptr<IPlcInfoService>;
33
34public: // construction/destruction
36 IPlcInfoService(void) = default;
37
38public: // static policy operation
39 static IRscServiceProxyFactory& GetProxyFactory(void);
40
41public: // abstract operations
47 virtual RscVariant<256> GetInfo(PlcInfoId identifier) = 0;
48
54 virtual std::vector<RscVariant<256>> GetInfos(const std::vector<PlcInfoId>& identifiers) = 0;
55};
56
58// inline methods of class IPlcInfoService
59inline IRscServiceProxyFactory& IPlcInfoService::GetProxyFactory()
60{
61 return PlcInfoServiceProxyFactory::GetInstance();
62}
63
64}}}} // end of namespace Arp::Plc::Domain::Services
Provides informations about the Plc (realtime) project.
Definition: IPlcInfoService.hpp:30
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:20
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