HAN-FUN API  1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
HF::Core::ServiceRole< Parent, _role > Struct Template Reference

Class template for all interfaces role implementations. More...

#include <core.h>

Inherits Parent.

+ Collaboration diagram for HF::Core::ServiceRole< Parent, _role >:

Public Member Functions

Interface::Role role () const
 Return the Interface::Role this interface implements. More...
 

Protected Member Functions

 ServiceRole (Unit0 &unit)
 Constructor. More...
 

Detailed Description

template<class Parent, Interface::Role _role>
struct HF::Core::ServiceRole< Parent, _role >

Class template for all interfaces role implementations.

Definition at line 225 of file core.h.

Constructor & Destructor Documentation

◆ ServiceRole()

template<class Parent, Interface::Role _role>
HF::Core::ServiceRole< Parent, _role >::ServiceRole ( Unit0 unit)
inlineprotected

Constructor.

Parameters
[in]unitreference to the unit that holds this service.

Definition at line 243 of file core.h.

243  :
244  Parent(unit)
245  {}

Member Function Documentation

◆ role()

template<class Parent, Interface::Role _role>
Interface::Role HF::Core::ServiceRole< Parent, _role >::role ( ) const
inline

Return the Interface::Role this interface implements.

Returns
the Interface::Role implemented by the interface.

Definition at line 231 of file core.h.

232  {
233  return _role;
234  }

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