PLCnext API Documentation 25.0.2.69
Public Member Functions | List of all members
Arp::Base::Rsc::Commons::Services::RscComponentServiceImplBase Class Reference

Base class for RSC component services. Holds a reference to the associated component. More...

#include <RscComponentServiceImplBase.hpp>

Public Member Functions

 RscComponentServiceImplBase (IComponent &component)
 Constructs an RscComponentServiceImplBase instance. More...
 
template<class T >
T & GetComponent (void)
 Gets a reference to the associated component. More...
 
IComponentGetComponent (void)
 Gets a reference to associated component. More...
 

Detailed Description

Base class for RSC component services. Holds a reference to the associated component.

This class is not intended for direct use, but required by RscGenerator to implement services.

Constructor & Destructor Documentation

◆ RscComponentServiceImplBase()

Arp::Base::Rsc::Commons::Services::RscComponentServiceImplBase::RscComponentServiceImplBase ( IComponent component)
explicit

Constructs an RscComponentServiceImplBase instance.

Parameters
componentThe component instance providing this service.

Member Function Documentation

◆ GetComponent() [1/2]

template<class T >
T & Arp::Base::Rsc::Commons::Services::RscComponentServiceImplBase::GetComponent ( void  )
inline

Gets a reference to the associated component.

Returns
Reference to associated component.
Template Parameters
TThe component type.
Exceptions
InvalidCastExceptionThrows if T doesn't match type of component.

◆ GetComponent() [2/2]

IComponent & Arp::Base::Rsc::Commons::Services::RscComponentServiceImplBase::GetComponent ( void  )

Gets a reference to associated component.

Returns
Reference to component via interface IComponent

The documentation for this class was generated from the following files: