Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::InitiateTask Class Referenceabstract

Initialization task base class. More...

#include <Initializer.h>

Inheritance diagram for sese::InitiateTask:
sese::ThreadInitiateTask sese::record::LoggerInitiateTask sese::security::SecurityInitTask sese::system::CommandLineInitiateTask sese::system::PathsInitiateTask

Public Types

using Ptr = std::shared_ptr<InitiateTask>
 Initialization task smart pointer.
 

Public Member Functions

 InitiateTask (std::string name)
 
virtual ~InitiateTask ()=default
 
virtual int32_t init () noexcept=0
 
virtual int32_t destroy () noexcept=0
 
const std::string & getName () const
 

Private Attributes

std::string name
 

Detailed Description

Initialization task base class.

Member Typedef Documentation

◆ Ptr

using sese::InitiateTask::Ptr = std::shared_ptr<InitiateTask>

Initialization task smart pointer.

Note
std::stack is implemented using std::deque, and std::deque::top uses the '=' operator, which conflicts with std::unique_ptr. Therefore, InitiateTask::Ptr uses std::shared_ptr.

Constructor & Destructor Documentation

◆ InitiateTask()

InitiateTask::InitiateTask ( std::string name)
explicit

◆ ~InitiateTask()

virtual sese::InitiateTask::~InitiateTask ( )
virtualdefault

Member Function Documentation

◆ destroy()

◆ getName()

const std::string & sese::InitiateTask::getName ( ) const
nodiscard

◆ init()

Member Data Documentation

◆ name

std::string sese::InitiateTask::name
private

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