PLCnext API Documentation 24.0.0.71
RscServiceFactoryBase.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
8#include "Arp/System/Rsc/Services/Rsc.h"
9#include "Arp/System/Rsc/Services/IRscServiceFactory.hpp"
10
11namespace Arp { namespace System { namespace Rsc { namespace Services
12{
13
18class RscServiceFactoryBase : public IRscServiceFactory
19{
20protected: // usings
21 using Base = RscServiceFactoryBase;
22
23protected: // construction/destruction
32 RscServiceFactoryBase(bool isSecure, const String& serviceProviderName = "");
34 virtual ~RscServiceFactoryBase(void) = default;
35
36public: // overridden properties
37 bool IsSecure(void)const override;
38 const String& GetServiceProviderName(void)const override;
39
40protected: // fields
41 String serviceProviderName;
42 bool isSecure;
43};
44
46// inline methods of class RscServiceFactoryBase
47inline RscServiceFactoryBase::RscServiceFactoryBase(bool isSecure, const String& serviceProviderName)
48 : isSecure(isSecure)
49 , serviceProviderName(serviceProviderName)
50{
51}
52
53inline const String& RscServiceFactoryBase::GetServiceProviderName()const
54{
55 return this->serviceProviderName;
56}
57
58inline bool RscServiceFactoryBase::IsSecure()const
59{
60 return this->isSecure;
61}
62
63}}}} // 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