AMS Advanced Air Mobility Sensors UG
Loading...
Searching...
No Matches
CSoftwareComponent< tDerivedComponentClass, tInstanceCount > Class Template Referenceabstract

Public Member Functions

virtual void Init ()=0
 
virtual bool IsInitialized ()=0
 

Static Public Member Functions

static tDerivedComponentClass & GetInstance (unsigned uInstanceIndex=0U)
 

Static Public Attributes

static constexpr unsigned skuInstanceCount_ {tInstanceCount}
 

Protected Member Functions

 CSoftwareComponent ()=default
 
 ~CSoftwareComponent ()=default
 

Constructor & Destructor Documentation

◆ CSoftwareComponent()

template<class tDerivedComponentClass , unsigned tInstanceCount>
CSoftwareComponent< tDerivedComponentClass, tInstanceCount >::CSoftwareComponent ( )
protecteddefault

◆ ~CSoftwareComponent()

template<class tDerivedComponentClass , unsigned tInstanceCount>
CSoftwareComponent< tDerivedComponentClass, tInstanceCount >::~CSoftwareComponent ( )
protecteddefault

Member Function Documentation

◆ GetInstance()

template<class tDerivedComponentClass , unsigned tInstanceCount>
static tDerivedComponentClass & CSoftwareComponent< tDerivedComponentClass, tInstanceCount >::GetInstance ( unsigned  uInstanceIndex = 0U)
inlinestatic

Get a reference to a software component instance. The function asserts if the instance index is invalid.

Parameters
uInstanceIndexZero based instance index.
Returns
Reference to the instance.

◆ Init()

template<class tDerivedComponentClass , unsigned tInstanceCount>
virtual void CSoftwareComponent< tDerivedComponentClass, tInstanceCount >::Init ( )
pure virtual

Initialize the software component.

◆ IsInitialized()

template<class tDerivedComponentClass , unsigned tInstanceCount>
virtual bool CSoftwareComponent< tDerivedComponentClass, tInstanceCount >::IsInitialized ( )
pure virtual

Get initialization status of the software component.

Returns
True – the component is initialized, false otherwise.

Member Data Documentation

◆ skuInstanceCount_

template<class tDerivedComponentClass , unsigned tInstanceCount>
constexpr unsigned CSoftwareComponent< tDerivedComponentClass, tInstanceCount >::skuInstanceCount_ {tInstanceCount}
staticconstexpr

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