ldas-tools-al 2.6.4
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 ()
 

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
 

Private Member Functions

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()

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

◆ ~Fork()

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

Member Function Documentation

◆ ChildPid()

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

◆ close_pipe()

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

◆ close_pipes()

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

◆ closeStdErr()

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

◆ closeStdIn()

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

◆ closeStdOut()

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

◆ evalChild()

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

Implemented in LDASTools::AL::Exec.

◆ evalParent()

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

Implemented in LDASTools::AL::Exec.

◆ getReadFD()

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

◆ getStdErr()

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

◆ getStdIn()

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

◆ getStdOut()

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

◆ getWriteFD()

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

◆ IsChildAlive()

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

◆ isParent()

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

◆ Spawn()

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

Reimplemented in LDASTools::AL::Exec.

Member Data Documentation

◆ F_READ

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

◆ F_STDERR

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

◆ F_STDIN

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

◆ F_STDOUT

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

◆ F_WRITE

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[3][2]
private

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