Open CASCADE Technology 7.8.2.dev
|
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. | |
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.
|
static |
Return full path to the folder containing current process executable with trailing separator.
|
static |
Return full path to the current process executable.
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.