Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
PLMD::Subprocess::Handler Class Reference

Class used to cont/stop a Subprocess in an exception safe manner. More...

#include <Subprocess.h>

Public Member Functions

 Handler ()=default
 Default constructor. More...
 
 Handler (const Handler &)=delete
 Default copy constructor is deleted (not copyable) More...
 
 Handler (Handler &&) noexcept
 Move constructor. More...
 
 ~Handler ()
 Destructor stops the subprocess. More...
 
Handleroperator= (const Handler &handler)=delete
 Default copy assignment is deleted (not copyable) More...
 
Handleroperator= (Handler &&handler) noexcept
 Move assignment. More...
 

Private Member Functions

 Handler (Subprocess *sp) noexcept
 Private constructor. More...
 

Private Attributes

Subprocesssp =nullptr
 

Friends

class Subprocess
 

Detailed Description

Class used to cont/stop a Subprocess in an exception safe manner.

Constructor & Destructor Documentation

◆ Handler() [1/4]

PLMD::Subprocess::Handler::Handler ( Subprocess sp)
explicitprivatenoexcept

Private constructor.

Only to be called by Subprocess::contStop()

◆ Handler() [2/4]

PLMD::Subprocess::Handler::Handler ( )
default

Default constructor.

◆ ~Handler()

PLMD::Subprocess::Handler::~Handler ( )

Destructor stops the subprocess.

◆ Handler() [3/4]

PLMD::Subprocess::Handler::Handler ( const Handler )
delete

Default copy constructor is deleted (not copyable)

◆ Handler() [4/4]

PLMD::Subprocess::Handler::Handler ( Handler &&  handler)
noexcept

Move constructor.

Member Function Documentation

◆ operator=() [1/2]

Handler& PLMD::Subprocess::Handler::operator= ( const Handler handler)
delete

Default copy assignment is deleted (not copyable)

◆ operator=() [2/2]

Subprocess::Handler & PLMD::Subprocess::Handler::operator= ( Handler &&  handler)
noexcept

Move assignment.

Friends And Related Function Documentation

◆ Subprocess

friend class Subprocess
friend

Member Data Documentation

◆ sp

Subprocess* PLMD::Subprocess::Handler::sp =nullptr
private

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