PLCnext API Documentation  22.9.0.33
IPlcInfoService.hpp
1 //
3 // Copyright PHOENIX CONTACT Electronics GmbH
4 //
6 #pragma once
7 #include "Arp/System/Core/Arp.h"
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 
16 namespace Arp { namespace Plc { namespace Domain { namespace Services
17 {
18 
19 using namespace Arp;
20 using namespace Arp::System::Rsc::Services;
21 
27 {
28 public: // typedefs
29  using Ptr = std::shared_ptr<IPlcInfoService>;
30 
31 public: // construction/destruction
33  IPlcInfoService(void) = default;
34 
35 public: // static policy operation
36  static IRscServiceProxyFactory& GetProxyFactory(void);
37 
38 public: // 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
56 inline 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 std::vector< RscVariant< 256 > > GetInfos(const std::vector< PlcInfoId > &identifiers)=0
Gets the specified infos from the Plc project.
virtual RscVariant< 256 > GetInfo(PlcInfoId identifier)=0
Gets the specified info from the Plc project.
IPlcInfoService(void)=default
Constructs an IPlcInfoService instance.
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
Definition: IRscReadEnumerator.hxx:10
Root namespace for the PLCnext API