OSD_Process Class Reference

A set of system process tools

#include <OSD_Process.hxx>

Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
 OSD_Process ()
 Initializes the object and prepare for a possible dump

void 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 )

void TerminalType (TCollection_AsciiString &Name)
 Returns the terminal used (vt100, vt200 ,sun-cmd ...)

Quantity_Date SystemDate ()
 Gets system date.

Standard_Integer UserId ()
 Returns the 'User Id'.

TCollection_AsciiString UserName ()
 Returns the user name.

Standard_Boolean IsSuperUser ()
 Returns True if the process user is the super-user.

Standard_Integer ProcessId ()
 Returns the 'Process Id'

OSD_Path CurrentDirectory ()
 Returns the current path where the process is.

void SetCurrentDirectory (const OSD_Path &where)
 Changes the current process directory.

Standard_Boolean Failed () const
 Returns TRUE if an error occurs

void Reset ()
 Resets error counter to zero

void Perror ()
 Raises OSD_Error

Standard_Integer Error () const
 Returns error number if 'Failed' is TRUE.


Constructor & Destructor Documentation

OSD_Process::OSD_Process (  ) 

Member Function Documentation

OSD_Path OSD_Process::CurrentDirectory (  ) 
Standard_Integer OSD_Process::Error (  )  const
Standard_Boolean OSD_Process::Failed (  )  const
Standard_Boolean OSD_Process::IsSuperUser (  ) 
void OSD_Process::operator delete ( void *  anAddress  )  [inline]
void* OSD_Process::operator new ( size_t  size  )  [inline]
void* OSD_Process::operator new ( size_t  ,
void *  anAddress 
) [inline]
void OSD_Process::Perror (  ) 
Standard_Integer OSD_Process::ProcessId (  ) 
void OSD_Process::Reset (  ) 
void OSD_Process::SetCurrentDirectory ( const OSD_Path where  ) 
void OSD_Process::Spawn ( const TCollection_AsciiString cmd,
const Standard_Boolean  ShowWindow = Standard_True 
)
Quantity_Date OSD_Process::SystemDate (  ) 
void OSD_Process::TerminalType ( TCollection_AsciiString Name  ) 
Standard_Integer OSD_Process::UserId (  ) 
TCollection_AsciiString OSD_Process::UserName (  ) 

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Thu Mar 3 11:00:02 2011 for Open CASCADE Technology by  doxygen 1.6.3