Open CASCADE Technology
7.3.0
|
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... | |
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... | |
A set of system process tools.
OSD_Process::OSD_Process | ( | ) |
Initializes the object and prepare for a possible dump.
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.
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.