farm-ng-core
farm_ng::Component Class Reference

Parent definition of a farm_ng::Component. More...

#include <component.h>

Inheritance diagram for farm_ng::Component:

Public Member Functions

template<class TDerived >
 Component (Context const &ctx, std::string scheme, TDerived *, std::string const &path)
 Default constructor of a context, it gets its own io_context. More...
 
virtual ~Component ()=default
 Virtual destructor for component derived classes. More...
 
Context getContext () const
 Returns the owned Context by the component. More...
 
ContextStrand getContextStrand () const
 Returns the owned ContextStrand by the component. More...
 
const Uriuri () const
 Returns the unique uri of the component instance. More...
 

Protected Member Functions

virtual void onReset (Void const &)
 Placeholder for a component reset callback. More...
 

Detailed Description

Parent definition of a farm_ng::Component.

Constructor & Destructor Documentation

◆ Component()

template<class TDerived >
farm_ng::Component::Component ( Context const &  ctx,
std::string  scheme,
TDerived *  ,
std::string const &  path 
)
inlineexplicit

Default constructor of a context, it gets its own io_context.

◆ ~Component()

virtual farm_ng::Component::~Component ( )
virtualdefault

Virtual destructor for component derived classes.

Member Function Documentation

◆ getContext()

Context farm_ng::Component::getContext ( ) const

Returns the owned Context by the component.

◆ getContextStrand()

ContextStrand farm_ng::Component::getContextStrand ( ) const

Returns the owned ContextStrand by the component.

◆ onReset()

virtual void farm_ng::Component::onReset ( Void const &  )
inlineprotectedvirtual

Placeholder for a component reset callback.

◆ uri()

Uri const & farm_ng::Component::uri ( ) const

Returns the unique uri of the component instance.


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