ldas-tools-al 2.6.7
Loading...
Searching...
No Matches
LDASTools::AL::Exec Class Reference

#include <Exec.hh>

Inheritance diagram for LDASTools::AL::Exec:
Collaboration diagram for LDASTools::AL::Exec:

Classes

struct  exit_type

Public Types

typedef const char * arg_type
typedef double time_type
typedef const char * arg_type
typedef double time_type

Public Member Functions

 Exec (arg_type Command,...)
arg_type Command () const
bool IfExited () const
bool CoreDump () const
int ExitCode () const
int Signal () const
virtual void Spawn ()
const std::string & Stdout () const
const std::string & Stderr () const
time_type TimeCPU () const
 Exec (arg_type Command,...)
arg_type Command () const
bool IfExited () const
bool CoreDump () const
int ExitCode () const
int Signal () const
virtual void Spawn ()
const std::string & Stdout () const
const std::string & Stderr () const
time_type TimeCPU () const
pid_t ChildPid () const
pid_t ChildPid () const
bool IsChildAlive () const
bool IsChildAlive () const

Static Public Attributes

static arg_type COMMAND_END = (const char*)NULL

Protected Member Functions

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

Private Types

typedef std::vector< arg_typeoptions_type
typedef std::vector< arg_typeoptions_type

Private Member Functions

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

Private Attributes

options_type m_options
exit_type m_child_exit
time_type m_start_time_user
time_type m_start_time_system
pid_t m_child_pid
int m_pipes [3][2]

Static Private Attributes

static const int E_STDOUT = 0
static const int E_STDERR = 1
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

Member Typedef Documentation

◆ arg_type [1/2]

typedef const char* LDASTools::AL::Exec::arg_type

◆ arg_type [2/2]

typedef const char* LDASTools::AL::Exec::arg_type

◆ options_type [1/2]

typedef std::vector< arg_type > LDASTools::AL::Exec::options_type
private

◆ options_type [2/2]

typedef std::vector< arg_type > LDASTools::AL::Exec::options_type
private

◆ time_type [1/2]

◆ time_type [2/2]

Constructor & Destructor Documentation

◆ Exec() [1/2]

LDASTools::AL::Exec::Exec ( arg_type Command,
... )

◆ Exec() [2/2]

LDASTools::AL::Exec::Exec ( arg_type Command,
... )

Member Function Documentation

◆ ChildPid() [1/2]

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

◆ ChildPid() [2/2]

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

◆ close_pipe() [1/2]

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

◆ close_pipe() [2/2]

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

◆ close_pipes() [1/2]

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

◆ close_pipes() [2/2]

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

◆ closeStdErr() [1/2]

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

◆ closeStdErr() [2/2]

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

◆ closeStdIn() [1/2]

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

◆ closeStdIn() [2/2]

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

◆ closeStdOut() [1/2]

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

◆ closeStdOut() [2/2]

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

◆ Command() [1/2]

Exec::arg_type LDASTools::AL::Exec::Command ( ) const
inline

◆ Command() [2/2]

arg_type LDASTools::AL::Exec::Command ( ) const

◆ CoreDump() [1/2]

bool LDASTools::AL::Exec::CoreDump ( ) const
inline

◆ CoreDump() [2/2]

bool LDASTools::AL::Exec::CoreDump ( ) const

◆ evalChild() [1/2]

void LDASTools::AL::Exec::evalChild ( )
protectedvirtual

Implements LDASTools::AL::Fork.

◆ evalChild() [2/2]

virtual void LDASTools::AL::Exec::evalChild ( )
protectedvirtual

Implements LDASTools::AL::Fork.

◆ evalParent() [1/2]

void LDASTools::AL::Exec::evalParent ( )
protectedvirtual

Implements LDASTools::AL::Fork.

◆ evalParent() [2/2]

virtual void LDASTools::AL::Exec::evalParent ( )
protectedvirtual

Implements LDASTools::AL::Fork.

◆ ExitCode() [1/2]

int LDASTools::AL::Exec::ExitCode ( ) const
inline

◆ ExitCode() [2/2]

int LDASTools::AL::Exec::ExitCode ( ) const

◆ getReadFD() [1/2]

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

◆ getReadFD() [2/2]

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

◆ getStdErr() [1/2]

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

◆ getStdErr() [2/2]

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

◆ getStdIn() [1/2]

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

◆ getStdIn() [2/2]

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

◆ getStdOut() [1/2]

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

◆ getStdOut() [2/2]

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

◆ getWriteFD() [1/2]

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

◆ getWriteFD() [2/2]

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

◆ IfExited() [1/2]

bool LDASTools::AL::Exec::IfExited ( ) const
inline

◆ IfExited() [2/2]

bool LDASTools::AL::Exec::IfExited ( ) const

◆ IsChildAlive() [1/2]

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

◆ IsChildAlive() [2/2]

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

◆ isParent() [1/2]

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

◆ isParent() [2/2]

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

◆ Signal() [1/2]

int LDASTools::AL::Exec::Signal ( ) const
inline

◆ Signal() [2/2]

int LDASTools::AL::Exec::Signal ( ) const

◆ Spawn() [1/2]

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

Reimplemented from LDASTools::AL::Fork.

◆ Spawn() [2/2]

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

Reimplemented from LDASTools::AL::Fork.

◆ Stderr() [1/2]

const std::string & LDASTools::AL::Exec::Stderr ( ) const
inline

◆ Stderr() [2/2]

const std::string & LDASTools::AL::Exec::Stderr ( ) const

◆ Stdout() [1/2]

const std::string & LDASTools::AL::Exec::Stdout ( ) const
inline

◆ Stdout() [2/2]

const std::string & LDASTools::AL::Exec::Stdout ( ) const

◆ TimeCPU() [1/2]

Exec::time_type LDASTools::AL::Exec::TimeCPU ( ) const
inline

◆ TimeCPU() [2/2]

time_type LDASTools::AL::Exec::TimeCPU ( ) const

Member Data Documentation

◆ COMMAND_END

arg_type LDASTools::AL::Exec::COMMAND_END = (const char*)NULL
static

◆ E_STDERR

const int LDASTools::AL::Exec::E_STDERR = 1
staticprivate

◆ E_STDOUT

const int LDASTools::AL::Exec::E_STDOUT = 0
staticprivate

◆ F_READ

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

◆ F_STDERR

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

◆ F_STDIN

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

◆ F_STDOUT

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

◆ F_WRITE

const int LDASTools::AL::Fork::F_WRITE = 1
staticprivateinherited

◆ m_child_exit

exit_type LDASTools::AL::Exec::m_child_exit
private

◆ m_child_pid

pid_t LDASTools::AL::Fork::m_child_pid
privateinherited

◆ m_options

options_type LDASTools::AL::Exec::m_options
private

◆ m_pipes

int LDASTools::AL::Fork::m_pipes
privateinherited

◆ m_start_time_system

time_type LDASTools::AL::Exec::m_start_time_system
private

◆ m_start_time_user

time_type LDASTools::AL::Exec::m_start_time_user
private

The documentation for this class was generated from the following files:
  • /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7-build/ldas-tools-al-2.6.7/build/include/ldastoolsal/Exec.hh
  • /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7-build/ldas-tools-al-2.6.7/src/Exec.hh
  • /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7-build/ldas-tools-al-2.6.7/src/Exec.cc