User Documentation
RAVL, Recognition And Vision Library
DEVELOP HOME PAGE CLASS LIST CONTENTS
Ravl - OS - Exec - OSProcessC
 

  PUBLIC
OSProcessC::OSProcessC(void)
OSProcessC::OSProcessC(int)
OSProcessC::Signal(IntT)
OSProcessC::Kill(bool)
OSProcessC::Pid(void) const
OSProcessC::Hash(void) const
OSProcessC::operator ==(const OSProcessC &) const
OSProcessC::WaitForChild(int &)
OSProcessC::MemorySize(void)
OSProcessC::SigStop(void)
OSProcessC::SigContinue(void)
RCHandleC::operator =(const RCHandleC &)
RCHandleC::DeepCopy(UIntT) const
RCHandleC::operator ==(const RCHandleC &) const
RCHandleC::operator !=(const RCHandleC &) const
RCHandleC::Hash(void) const
RCHandleC::IsValid(void) const
RCHandleC::Invalidate(void)
RCHandleC::IsHandleType(const DT &) const
RCHandleC::CheckHandleType(const DT &) const
RCHandleC::References(void) const
RCHandleC::operator <<(ostream &,const RCHandleC &)
RCHandleC::operator >>(istream &,RCHandleC &)

   OSProcessC   
 
OSProcess handle.
 
include "Ravl/OS/OSProcess.hh"
Created:07/01/99 
User Level:Normal
Library:RavlOS
In Scope:RavlN

Parent Classes: Derived Classes: Methods:
OSProcessC()
Default constructor.
Creates an invalid handle.

OSProcessC(int npid)
Default constructor.

bool Signal(IntT signo)
Send a signal to the process.

bool Kill(bool hard = false)
Kill the child process.
The process should die sometime after this call though it may not be immediatly.

int Pid() const
Get process id.

UIntT Hash() const
Hash on pid.

bool operator ==(const OSProcessC & oth) const
Compair two processes.

static int WaitForChild(int & status)
Wait for change in state of a child process.
returns PID of child that's changed state. -1 = Call interupted. 0 = No children.



UIntT MemorySize()
Get the amount of memory this process is using.
Returns 0 on failure. 1 if special Will return ((UIntT) -1) if process size is bigger than 4Gb.

bool SigStop()
Stop this process. (Like Ctrl-z)

bool SigContinue()
Start this process.
Restart the this process after a stop.

#include "Ravl/RefCounter.hh"
const RCHandleC<OSProcessBodyC> & operator =(const RCHandleC<OSProcessBodyC> & oth)
Assign handle.

RCHandleC<OSProcessBodyC> DeepCopy(UIntT levels = ((UIntT))) const
Do a deep copy of the object.

bool operator ==(const RCHandleC<OSProcessBodyC> & oth) const
Are handles to the same object ?

bool operator !=(const RCHandleC<OSProcessBodyC> & oth) const
Are handles to different objects ?

UIntT Hash() const
Default hash function.
This hashes on the address of the body.

bool IsValid() const
Test if this is a valid handle.

void Invalidate()
Invalidate this handle.
Unattaches the body from the handle.

bool IsHandleType(const DT &) const
Is handle of given type ?

void CheckHandleType(const DT & dummy) const
Check handle type. Throw an expception if not.

UIntT References() const
Find the number of references to the body of this object.

ostream & operator <<(ostream & strm,const RCHandleC<OSProcessBodyC> & obj)

istream & operator >>(istream & strm,RCHandleC<OSProcessBodyC> & obj)


Maintainer:Charles Galambos, Created: 07/01/99, Documentation by CxxDoc: Tue Aug 13 09:59:02 2002