UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
dcf::ProcessObserver Class Reference

#include <process_observer.hpp>

Public Member Functions

 ProcessObserver ()
 
virtual ~ProcessObserver ()
 
dcf::error_t start ()
 
void stop ()
 
pid_t getProcPID ()
 
pid_t getObserverPID ()
 

Protected Member Functions

virtual void procDeadAction ()
 

Protected Attributes

pid_t m_observer_pid
 
pid_t m_proc_pid
 

Detailed Description

Process observer.

Constructor & Destructor Documentation

dcf::ProcessObserver::ProcessObserver ( )

Default constructor.

virtual dcf::ProcessObserver::~ProcessObserver ( )
virtual

Destructs object and kills his child process if created.

Member Function Documentation

pid_t dcf::ProcessObserver::getObserverPID ( )
inline

Get observers

pid_t dcf::ProcessObserver::getProcPID ( )
inline

Gets PID of process to be observed.

virtual void dcf::ProcessObserver::procDeadAction ( )
protectedvirtual

Provides action when process is terminated.

dcf::error_t dcf::ProcessObserver::start ( )

Starts process observing. Returns dcf::ErrSuccess if all good.

void dcf::ProcessObserver::stop ( )

Stop process observing.

Member Data Documentation

pid_t dcf::ProcessObserver::m_observer_pid
protected

< Current PID of child process or -1 if not started. PID of parrent process to be observed.


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