PLCnext API Documentation  21.6.0.46
IPlcInfoService.hpp
1 //
3 // Copyright PHOENIX CONTACT Electronics GmbH
4 //
6 #pragma once
7 #include "Arp/System/Core/Arp.h"
8 #include "Arp/System/Rsc/Services/IRscService.hpp"
9 #include "PlcInfoServiceProxyFactory.hpp"
10 #include "Arp/System/Rsc/Services/RscVariant.hxx"
11 #include "PlcInfoId.hpp"
12 #include <vector>
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 
26 {
27 public: // typedefs
28  using Ptr = std::shared_ptr<IPlcInfoService>;
29 
30 public: // construction/destruction
32  IPlcInfoService(void) = default;
33 
34 public: // static policy operation
35  static IRscServiceProxyFactory& GetProxyFactory(void);
36 
37 public: // abstract operations
43  virtual RscVariant<256> GetInfo(PlcInfoId identifier) = 0;
44 
50  virtual std::vector<RscVariant<256>> GetInfos(const std::vector<PlcInfoId>& identifiers) = 0;
51 };
52 
54 // inline methods of class IPlcInfoService
55 inline IRscServiceProxyFactory& IPlcInfoService::GetProxyFactory()
56 {
57  return PlcInfoServiceProxyFactory::GetInstance();
58 }
59 
60 }}}} // end of namespace Arp::Plc::Domain::Services
Provides informations about the Plc (realtime) project.
Definition: IPlcInfoService.hpp:25
Namespace for classes and interfaces for the Remote Service Call implementation
Definition: IRscReadEnumerator.hxx:9
PlcInfoId
Collects all identifiers of Plc informations to be read by IPlcInfoService.
Definition: PlcInfoId.hpp:20
Root namespace for the PLCnext API
Base interface for all Rsc service interface.
Definition: IRscService.hpp:18