PLCnext API Documentation 23.0.2.9
RscServiceFactoryBase.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
7#include "Arp/System/Rsc/Services/Rsc.h"
8#include "Arp/System/Rsc/Services/IRscServiceFactory.hpp"
9
10namespace Arp { namespace System { namespace Rsc { namespace Services
11{
12
17class RscServiceFactoryBase : public IRscServiceFactory
18{
19protected: // usings
20 using Base = RscServiceFactoryBase;
21
22protected: // construction/destruction
31 RscServiceFactoryBase(bool isSecure, const String& serviceProviderName = "");
33 virtual ~RscServiceFactoryBase(void) = default;
34
35public: // overridden properties
36 bool IsSecure(void)const override;
37 const String& GetServiceProviderName(void)const override;
38
39protected: // fields
40 String serviceProviderName;
41 bool isSecure;
42};
43
45// inline methods of class RscServiceFactoryBase
46inline RscServiceFactoryBase::RscServiceFactoryBase(bool isSecure, const String& serviceProviderName)
47 : isSecure(isSecure)
48 , serviceProviderName(serviceProviderName)
49{
50}
51
52inline const String& RscServiceFactoryBase::GetServiceProviderName()const
53{
54 return this->serviceProviderName;
55}
56
57inline bool RscServiceFactoryBase::IsSecure()const
58{
59 return this->isSecure;
60}
61
62}}}} // end of namespace Arp::System::Rsc::Services
Arp::BasicString< char8 > String
The Arp String class.
Definition: TypeSystem.h:27
@ System
System components used by the System, Device, Plc or Io domains.
Root namespace for the PLCnext API