OCC Main Page | WOK | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

WOK
TKWOK
WOKNT


WOKNT_OutErrOutput Class Reference

manages output of sub-process ( creates a pipe ).
Standard output stream and standard error stream are MIXED.

#include <WOKNT_OutErrOutput.hxx>

Inheritance diagram for WOKNT_OutErrOutput:

Inheritance graph
[legend]

Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT WOKNT_OutErrOutput ()
 creates a class instance

Standard_EXPORT void Cleanup ()
 closes read end of the 'STDERR' handle

 ~WOKNT_OutErrOutput ()
Standard_EXPORT Standard_Integer OpenStdErr ()
 creates a pipe for reading a standard error output of sub-process
and returns a pipe handle
Warning: returns INVALID_HANDLE_VALUE in case of failure

Standard_EXPORT void CloseStdErr ()
 closes write end of the 'STDERR' pipe

Standard_EXPORT void Clear ()
 clears output buffer of sub-process

Standard_EXPORT Handle_TColStd_HSequenceOfHAsciiString Errors ()
 returns standard error output of sub-process
Warning: returns NULL object if there is nothing to read

Standard_EXPORT Handle_TColStd_HSequenceOfHAsciiString SyncStdErr ()
 waits for sub-process termination ( until the write end of pipe
will be closed ).
Warning: write end of pipe MUST BE CLOSED by parent process immediately
after creation of the child process else this method will
NEVER return. Use ONLY 'CloseStdErr' method for this purpose.


Private Attributes

Standard_Integer myErrHandleR
Standard_Integer myErrHandleW
Handle_TColStd_HSequenceOfHAsciiString myStdErr

Constructor & Destructor Documentation

Standard_EXPORT WOKNT_OutErrOutput::WOKNT_OutErrOutput  ) 
 

WOKNT_OutErrOutput::~WOKNT_OutErrOutput  )  [inline]
 


Member Function Documentation

Standard_EXPORT void WOKNT_OutErrOutput::Cleanup  )  [virtual]
 

Reimplemented from WOKNT_MixedOutput.

Standard_EXPORT void WOKNT_OutErrOutput::Clear  )  [virtual]
 

Reimplemented from WOKNT_MixedOutput.

Standard_EXPORT void WOKNT_OutErrOutput::CloseStdErr  )  [virtual]
 

Reimplemented from WOKNT_MixedOutput.

Standard_EXPORT Handle_TColStd_HSequenceOfHAsciiString WOKNT_OutErrOutput::Errors  )  [virtual]
 

Reimplemented from WOKNT_MixedOutput.

Standard_EXPORT Standard_Integer WOKNT_OutErrOutput::OpenStdErr  )  [virtual]
 

Reimplemented from WOKNT_MixedOutput.

void WOKNT_OutErrOutput::operator delete void *  anAddress  )  [inline]
 

Reimplemented from WOKNT_MixedOutput.

void* WOKNT_OutErrOutput::operator new size_t  size  )  [inline]
 

Reimplemented from WOKNT_MixedOutput.

void* WOKNT_OutErrOutput::operator new size_t  ,
void *  anAddress
[inline]
 

Reimplemented from WOKNT_MixedOutput.

Standard_EXPORT Handle_TColStd_HSequenceOfHAsciiString WOKNT_OutErrOutput::SyncStdErr  )  [virtual]
 

Reimplemented from WOKNT_MixedOutput.


Field Documentation

Standard_Integer WOKNT_OutErrOutput::myErrHandleR [private]
 

Standard_Integer WOKNT_OutErrOutput::myErrHandleW [private]
 

Handle_TColStd_HSequenceOfHAsciiString WOKNT_OutErrOutput::myStdErr [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 15:00:10 2008 for OpenCASCADE by  doxygen 1.4.1