PLCnext API Documentation 25.0.2.69
|
Base class of all RSC service factories. More...
#include <RscServiceFactoryBase.hpp>
Public Member Functions | |
RscServiceFactoryBase (bool isSecure, const String &serviceProviderName="") | |
Constructs an RscServiceFactoryBase instance. More... | |
RscServiceFactoryBase (const RscServiceFactoryBase &arg)=delete | |
RscServiceFactoryBase (RscServiceFactoryBase &&arg) noexcept | |
The default move constructor. More... | |
RscServiceFactoryBase & | operator= (const RscServiceFactoryBase &arg)=delete |
RscServiceFactoryBase & | operator= (RscServiceFactoryBase &&arg) noexcept |
The default move-assignment operator. More... | |
~RscServiceFactoryBase (void) override | |
The default destructor. | |
bool | IsSecure (void) const override |
Determines if the services of this factory shall be authorized by security. More... | |
String | GetServiceProviderName (void) const override |
Gets the service-provider name of the services created by this factory. More... | |
virtual IRscServiceStub::Ptr | CreateServiceStub (SerializationKind kind, IRscService::Ptr pService)=0 |
This operation creates a service stub of various serialization kinds, e.g. SerializationKind::Rsc or SerializationKind::JRsc. More... | |
virtual IRscService::Ptr | CreateServiceImpl (const char *providerName, IRscAuthorizator *pAuthorizator)=0 |
Creates a service implementation instance. More... | |
Impl & | GetImpl (void) |
For internal use only. More... | |
const Impl & | GetImpl (void) const |
![]() | |
IRscServiceFactory (void)=default | |
The default constructor. | |
IRscServiceFactory (const IRscServiceFactory &arg)=delete | |
The deleted copy constructor. | |
IRscServiceFactory (IRscServiceFactory &&arg) noexcept=default | |
The default move constructor. More... | |
IRscServiceFactory & | operator= (const IRscServiceFactory &)=delete |
The deleted assignment operator. | |
IRscServiceFactory & | operator= (IRscServiceFactory &&arg) noexcept=default |
The default move-assignment operator. More... | |
virtual | ~IRscServiceFactory (void)=default |
Destructs this instance and frees all resources. | |
virtual bool | IsSecure (void) const =0 |
Determines if the services of this factory shall be authorized by security. More... | |
virtual String | GetServiceProviderName (void) const =0 |
Gets the service-provider name of the services created by this factory. More... | |
virtual IRscService::Ptr | CreateServiceImpl (const char *providerName, IRscAuthorizator *pAuthorizator)=0 |
Creates a service implementation instance. More... | |
virtual IRscServiceStub::Ptr | CreateServiceStub (SerializationKind kind, IRscService::Ptr pService)=0 |
This operation creates a service stub of various serialization kinds, e.g. SerializationKind::Rsc or SerializationKind::JRsc. More... | |
Additional Inherited Members | |
![]() | |
using | Ptr = std::shared_ptr< IRscServiceFactory > |
The shared_tr type of this type. | |
Base class of all RSC service factories.
This class is not intended for direct use, but required by RscGenerator to implement services.
|
explicit |
Constructs an RscServiceFactoryBase instance.
isSecure | Security is enabled for services created by this factory. |
serviceProviderName | The service provider name of the RSC service to create. |
The default service provider name is 'Arp' for all PLCnext services. If the argument defaults to an empty string, the application name (process name) is used. For component services, the name shall be the component name of the component which provides this RSC service.
|
defaultnoexcept |
The default move constructor.
arg | The argument to move. |
|
pure virtual |
Creates a service implementation instance.
providerName | The service-provider name of the service implementation to create. |
pAuthorizator | The authorizator to use for authorization of the service calls. |
Implements Arp::Base::Rsc::Commons::Services::IRscServiceFactory.
|
pure virtual |
This operation creates a service stub of various serialization kinds, e.g. SerializationKind::Rsc or SerializationKind::JRsc.
kind | The serialization kind, i.e. the remote technology supported by the stub. |
pService | The service implementation instance. |
Implements Arp::Base::Rsc::Commons::Services::IRscServiceFactory.
const RscServiceFactoryBase::Impl & Arp::Base::Rsc::Commons::Services::RscServiceFactoryBase::GetImpl | ( | void | ) |
For internal use only.
|
overridevirtual |
Gets the service-provider name of the services created by this factory.
Implements Arp::Base::Rsc::Commons::Services::IRscServiceFactory.
|
overridevirtual |
Determines if the services of this factory shall be authorized by security.
Implements Arp::Base::Rsc::Commons::Services::IRscServiceFactory.
|
defaultnoexcept |
The default move-assignment operator.
arg | The argument to move. |