Open CASCADE Technology  7.1.0.beta
Public Member Functions

OSD_Process Class Reference

A set of system process tools. More...

#include <OSD_Process.hxx>

Public Member Functions

 OSD_Process ()
 Initializes the object and prepare for a possible dump. More...
 
Standard_Integer Spawn (const TCollection_AsciiString &cmd, const Standard_Boolean ShowWindow=Standard_True)
 Issues a shell command ShowWindow : flag to allow show/hide of the window ( only used on WNT ) More...
 
void TerminalType (TCollection_AsciiString &Name)
 Returns the terminal used (vt100, vt200 ,sun-cmd ...) More...
 
Quantity_Date SystemDate ()
 Gets system date. More...
 
TCollection_AsciiString UserName ()
 Returns the user name. More...
 
Standard_Boolean IsSuperUser ()
 Returns True if the process user is the super-user. More...
 
Standard_Integer ProcessId ()
 Returns the 'Process Id'. More...
 
OSD_Path CurrentDirectory ()
 Returns the current path where the process is. More...
 
void SetCurrentDirectory (const OSD_Path &where)
 Changes the current process directory. More...
 
Standard_Boolean Failed () const
 Returns TRUE if an error occurs. More...
 
void Reset ()
 Resets error counter to zero. More...
 
void Perror ()
 Raises OSD_Error. More...
 
Standard_Integer Error () const
 Returns error number if 'Failed' is TRUE. More...
 

Detailed Description

A set of system process tools.

Constructor & Destructor Documentation

OSD_Process::OSD_Process ( )

Initializes the object and prepare for a possible dump.

Member Function Documentation

OSD_Path OSD_Process::CurrentDirectory ( )

Returns the current path where the process is.

Standard_Integer OSD_Process::Error ( ) const

Returns error number if 'Failed' is TRUE.

Standard_Boolean OSD_Process::Failed ( ) const

Returns TRUE if an error occurs.

Standard_Boolean OSD_Process::IsSuperUser ( )

Returns True if the process user is the super-user.

void OSD_Process::Perror ( )

Raises OSD_Error.

Standard_Integer OSD_Process::ProcessId ( )

Returns the 'Process Id'.

void OSD_Process::Reset ( )

Resets error counter to zero.

void OSD_Process::SetCurrentDirectory ( const OSD_Path where)

Changes the current process directory.

Standard_Integer OSD_Process::Spawn ( const TCollection_AsciiString cmd,
const Standard_Boolean  ShowWindow = Standard_True 
)

Issues a shell command ShowWindow : flag to allow show/hide of the window ( only used on WNT )

Quantity_Date OSD_Process::SystemDate ( )

Gets system date.

void OSD_Process::TerminalType ( TCollection_AsciiString Name)

Returns the terminal used (vt100, vt200 ,sun-cmd ...)

TCollection_AsciiString OSD_Process::UserName ( )

Returns the user name.


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