Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::LinuxProcessIORedirector Class Reference

Win32 (NT or better) implementation of ProcessIORedirectionPeer original code swiped from: (c) 2002 Andreas Saurwein - saurwein@uniwares.com Any mistakes are mine due to the "port" over into the VCF. More...

#include <LinuxProcessIORedirector.h>

Inheritance diagram for VCF::LinuxProcessIORedirector:

VCF::Object VCF::ProcessIORedirectionPeer VCF::ProcessPeer List of all members.

Public Member Functions

 LinuxProcessIORedirector ()
virtual ~LinuxProcessIORedirector ()
virtual void addOutputReadyHandler (EventHandler *eventHandler)
virtual void removeOutputReadyHandler (EventHandler *eventHandler)
virtual int getProcessID ()
 returns an int that uniquely identifies the process on a given machine
virtual int getProcessThreadID ()
 returns the process's main thread ID
virtual bool createProcess (const String &processName, const String &arguments)
 creates a new process specified by the fully qualified file name in the processName argument.
virtual String getProcessFileName ()
 returns the fully qualified file name of the process the object represents.
virtual OSHandleID getHandleID ()
virtual void setProcess (ProcessWithRedirectedIO *process)
 sets the peer's ProcessWithRedirectedIO process instance.
virtual uint32 terminate ()
virtual Waitable::WaitResult wait (uint32 milliseconds)
virtual Waitable::WaitResult wait ()

Protected Attributes

uint32 childProcess_
ProcessWithRedirectedIOprocess_
int processID_
int processThreadID_
String commandLine_
Delegate outputReady_

Detailed Description

Win32 (NT or better) implementation of ProcessIORedirectionPeer original code swiped from: (c) 2002 Andreas Saurwein - saurwein@uniwares.com Any mistakes are mine due to the "port" over into the VCF.


Constructor & Destructor Documentation

VCF::LinuxProcessIORedirector::LinuxProcessIORedirector  ) 
 

virtual VCF::LinuxProcessIORedirector::~LinuxProcessIORedirector  )  [virtual]
 


Member Function Documentation

virtual void VCF::LinuxProcessIORedirector::addOutputReadyHandler EventHandler eventHandler  )  [inline, virtual]
 

virtual bool VCF::LinuxProcessIORedirector::createProcess const String processName,
const String arguments
[virtual]
 

creates a new process specified by the fully qualified file name in the processName argument.

Parameters:
String the fully qualified file name of process to start. This must represent an actual executable file
Returns:
bool returns true if the process was successfully started otherwise false.

Implements VCF::ProcessPeer.

virtual OSHandleID VCF::LinuxProcessIORedirector::getHandleID  )  [inline, virtual]
 

Implements VCF::ProcessPeer.

virtual String VCF::LinuxProcessIORedirector::getProcessFileName  )  [inline, virtual]
 

returns the fully qualified file name of the process the object represents.

Implements VCF::ProcessPeer.

virtual int VCF::LinuxProcessIORedirector::getProcessID  )  [inline, virtual]
 

returns an int that uniquely identifies the process on a given machine

Implements VCF::ProcessPeer.

virtual int VCF::LinuxProcessIORedirector::getProcessThreadID  )  [inline, virtual]
 

returns the process's main thread ID

Implements VCF::ProcessPeer.

virtual void VCF::LinuxProcessIORedirector::removeOutputReadyHandler EventHandler eventHandler  )  [inline, virtual]
 

virtual void VCF::LinuxProcessIORedirector::setProcess ProcessWithRedirectedIO process  )  [inline, virtual]
 

sets the peer's ProcessWithRedirectedIO process instance.

When an OutputReady event occurs, the ProcessWithRedirectedIO instance is what will be used as the source of the event, not the peer itself.

Implements VCF::ProcessIORedirectionPeer.

virtual uint32 VCF::LinuxProcessIORedirector::terminate  )  [virtual]
 

Implements VCF::ProcessPeer.

virtual Waitable::WaitResult VCF::LinuxProcessIORedirector::wait  )  [virtual]
 

Implements VCF::ProcessPeer.

virtual Waitable::WaitResult VCF::LinuxProcessIORedirector::wait uint32  milliseconds  )  [virtual]
 

Implements VCF::ProcessPeer.


Member Data Documentation

uint32 VCF::LinuxProcessIORedirector::childProcess_ [protected]
 

String VCF::LinuxProcessIORedirector::commandLine_ [protected]
 

Delegate VCF::LinuxProcessIORedirector::outputReady_ [protected]
 

ProcessWithRedirectedIO* VCF::LinuxProcessIORedirector::process_ [protected]
 

int VCF::LinuxProcessIORedirector::processID_ [protected]
 

int VCF::LinuxProcessIORedirector::processThreadID_ [protected]
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information