Open CASCADE Technology 7.8.2.dev
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.
 
void TerminalType (TCollection_AsciiString &Name)
 Returns the terminal used (vt100, vt200 ,sun-cmd ...)
 
Quantity_Date SystemDate ()
 Gets system date.
 
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.
 

Static Public Member Functions

static TCollection_AsciiString ExecutablePath ()
 Return full path to the current process executable.
 
static TCollection_AsciiString ExecutableFolder ()
 Return full path to the folder containing current process executable with trailing separator.
 

Detailed Description

A set of system process tools.

Constructor & Destructor Documentation

◆ OSD_Process()

OSD_Process::OSD_Process ( )

Initializes the object and prepare for a possible dump.

Member Function Documentation

◆ CurrentDirectory()

OSD_Path OSD_Process::CurrentDirectory ( )

Returns the current path where the process is.

◆ Error()

Standard_Integer OSD_Process::Error ( ) const

Returns error number if 'Failed' is TRUE.

◆ ExecutableFolder()

static TCollection_AsciiString OSD_Process::ExecutableFolder ( )
static

Return full path to the folder containing current process executable with trailing separator.

◆ ExecutablePath()

static TCollection_AsciiString OSD_Process::ExecutablePath ( )
static

Return full path to the current process executable.

◆ Failed()

Standard_Boolean OSD_Process::Failed ( ) const

Returns TRUE if an error occurs.

◆ IsSuperUser()

Standard_Boolean OSD_Process::IsSuperUser ( )

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

◆ Perror()

void OSD_Process::Perror ( )

Raises OSD_Error.

◆ ProcessId()

Standard_Integer OSD_Process::ProcessId ( )

Returns the 'Process Id'.

◆ Reset()

void OSD_Process::Reset ( )

Resets error counter to zero.

◆ SetCurrentDirectory()

void OSD_Process::SetCurrentDirectory ( const OSD_Path & where)

Changes the current process directory.

◆ SystemDate()

Quantity_Date OSD_Process::SystemDate ( )

Gets system date.

◆ TerminalType()

void OSD_Process::TerminalType ( TCollection_AsciiString & Name)

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

◆ UserName()

TCollection_AsciiString OSD_Process::UserName ( )

Returns the user name.


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