PLCnext API Documentation  21.0.0.35466
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  typedef std::shared_ptr<IPlcInfoService> Ptr;
29 
30 public: // construction/destruction
32  IPlcInfoService(void);
34  virtual ~IPlcInfoService(void);
35 
36 public: // static policy operation
37  static IRscServiceProxyFactory& GetProxyFactory(void);
38 
39 public: // abstract operations
45  virtual RscVariant<256> GetInfo(PlcInfoId identifier) = 0;
46 
52  virtual std::vector<RscVariant<256>> GetInfos(const std::vector<PlcInfoId>& identifiers) = 0;
53 
54 private: // deleted methods (for non-copyable classes)
55  IPlcInfoService(const IPlcInfoService& arg) = delete;
56  IPlcInfoService& operator=(const IPlcInfoService& arg) = delete;
57 };
58 
60 // inline methods of class IPlcInfoService
62 {
63 }
64 
66 {
67 }
68 
69 inline IRscServiceProxyFactory& IPlcInfoService::GetProxyFactory()
70 {
71  return PlcInfoServiceProxyFactory::GetInstance();
72 }
73 
74 }}}} // end of namespace Arp::Plc::Domain::Services
Provides informations about the Plc (realtime) project.
Definition: IPlcInfoService.hpp:25
virtual ~IPlcInfoService(void)
Destructs this instance and frees all resouces.
Definition: IPlcInfoService.hpp:65
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
IPlcInfoService(void)
Constructs an IPlcInfoService instance.
Definition: IPlcInfoService.hpp:61