ldas-tools-al 2.6.4
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
LDASTools::AL::Fork Class Referenceabstract

#include <Fork.hh>

Inheritance diagram for LDASTools::AL::Fork:
Inheritance graph
[legend]

Public Member Functions

 Fork ()
 
virtual ~Fork ()
 
pid_t ChildPid () const
 
bool IsChildAlive () const
 
virtual void Spawn ()
 
 Fork ()
 
virtual ~Fork ()
 
pid_t ChildPid () const
 
bool IsChildAlive () const
 
virtual void Spawn ()
 

Protected Member Functions

virtual void evalChild ()=0
 
virtual void evalParent ()=0
 
void closeStdIn ()
 
void closeStdOut ()
 
void closeStdErr ()
 
bool isParent () const
 
int getReadFD () const
 
int getWriteFD () const
 
int getStdIn () const
 
int getStdOut () const
 
int getStdErr () const
 
virtual void evalChild ()=0
 
virtual void evalParent ()=0
 
void closeStdIn ()
 
void closeStdOut ()
 
void closeStdErr ()
 
bool isParent () const
 
int getReadFD () const
 
int getWriteFD () const
 
int getStdIn () const
 
int getStdOut () const
 
int getStdErr () const
 

Private Member Functions

void close_pipes ()
 
void close_pipe (int Major, int Minor)
 
void close_pipes ()
 
void close_pipe (int Major, int Minor)
 

Private Attributes

pid_t m_child_pid
 
int m_pipes [3][2]
 

Static Private Attributes

static const int F_STDIN = 0
 
static const int F_STDOUT = 1
 
static const int F_STDERR = 2
 
static const int F_READ = 0
 
static const int F_WRITE = 1
 

Constructor & Destructor Documentation

◆ Fork() [1/2]

LDASTools::AL::Fork::Fork ( )

◆ ~Fork() [1/2]

LDASTools::AL::Fork::~Fork ( )
virtual

◆ Fork() [2/2]

LDASTools::AL::Fork::Fork ( )

◆ ~Fork() [2/2]

virtual LDASTools::AL::Fork::~Fork ( )
virtual

Member Function Documentation

◆ ChildPid() [1/2]

pid_t LDASTools::AL::Fork::ChildPid ( ) const
inline

◆ ChildPid() [2/2]

pid_t LDASTools::AL::Fork::ChildPid ( ) const

◆ close_pipe() [1/2]

void LDASTools::AL::Fork::close_pipe ( int Major,
int Minor )
private

◆ close_pipe() [2/2]

void LDASTools::AL::Fork::close_pipe ( int Major,
int Minor )
private

◆ close_pipes() [1/2]

void LDASTools::AL::Fork::close_pipes ( )
private

◆ close_pipes() [2/2]

void LDASTools::AL::Fork::close_pipes ( )
private

◆ closeStdErr() [1/2]

void LDASTools::AL::Fork::closeStdErr ( )
inlineprotected

◆ closeStdErr() [2/2]

void LDASTools::AL::Fork::closeStdErr ( )
protected

◆ closeStdIn() [1/2]

void LDASTools::AL::Fork::closeStdIn ( )
inlineprotected

◆ closeStdIn() [2/2]

void LDASTools::AL::Fork::closeStdIn ( )
protected

◆ closeStdOut() [1/2]

void LDASTools::AL::Fork::closeStdOut ( )
inlineprotected

◆ closeStdOut() [2/2]

void LDASTools::AL::Fork::closeStdOut ( )
protected

◆ evalChild() [1/2]

virtual void LDASTools::AL::Fork::evalChild ( )
protectedpure virtual

◆ evalChild() [2/2]

virtual void LDASTools::AL::Fork::evalChild ( )
protectedpure virtual

◆ evalParent() [1/2]

virtual void LDASTools::AL::Fork::evalParent ( )
protectedpure virtual

◆ evalParent() [2/2]

virtual void LDASTools::AL::Fork::evalParent ( )
protectedpure virtual

◆ getReadFD() [1/2]

int LDASTools::AL::Fork::getReadFD ( ) const
inlineprotected

◆ getReadFD() [2/2]

int LDASTools::AL::Fork::getReadFD ( ) const
protected

◆ getStdErr() [1/2]

int LDASTools::AL::Fork::getStdErr ( ) const
inlineprotected

◆ getStdErr() [2/2]

int LDASTools::AL::Fork::getStdErr ( ) const
protected

◆ getStdIn() [1/2]

int LDASTools::AL::Fork::getStdIn ( ) const
inlineprotected

◆ getStdIn() [2/2]

int LDASTools::AL::Fork::getStdIn ( ) const
protected

◆ getStdOut() [1/2]

int LDASTools::AL::Fork::getStdOut ( ) const
inlineprotected

◆ getStdOut() [2/2]

int LDASTools::AL::Fork::getStdOut ( ) const
protected

◆ getWriteFD() [1/2]

int LDASTools::AL::Fork::getWriteFD ( ) const
inlineprotected

◆ getWriteFD() [2/2]

int LDASTools::AL::Fork::getWriteFD ( ) const
protected

◆ IsChildAlive() [1/2]

bool LDASTools::AL::Fork::IsChildAlive ( ) const

◆ IsChildAlive() [2/2]

bool LDASTools::AL::Fork::IsChildAlive ( ) const

◆ isParent() [1/2]

bool LDASTools::AL::Fork::isParent ( ) const
inlineprotected

◆ isParent() [2/2]

bool LDASTools::AL::Fork::isParent ( ) const
protected

◆ Spawn() [1/2]

void LDASTools::AL::Fork::Spawn ( )
virtual

Reimplemented in LDASTools::AL::Exec, and LDASTools::AL::Exec.

◆ Spawn() [2/2]

virtual void LDASTools::AL::Fork::Spawn ( )
virtual

Reimplemented in LDASTools::AL::Exec, and LDASTools::AL::Exec.

Member Data Documentation

◆ F_READ

static const int LDASTools::AL::Fork::F_READ = 0
staticprivate

◆ F_STDERR

static const int LDASTools::AL::Fork::F_STDERR = 2
staticprivate

◆ F_STDIN

static const int LDASTools::AL::Fork::F_STDIN = 0
staticprivate

◆ F_STDOUT

static const int LDASTools::AL::Fork::F_STDOUT = 1
staticprivate

◆ F_WRITE

static const int LDASTools::AL::Fork::F_WRITE = 1
staticprivate

◆ m_child_pid

pid_t LDASTools::AL::Fork::m_child_pid
private

◆ m_pipes

int LDASTools::AL::Fork::m_pipes
private

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