|
Open CASCADE Technology
6.5.4
|
A set of system process tools
#include <OSD_Process.hxx>
Public Member Functions | |
| DEFINE_STANDARD_ALLOC | 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. | |
| Standard_Integer OSD_Process::Error | ( | ) | const |
| Standard_Boolean OSD_Process::Failed | ( | ) | const |
| void OSD_Process::SetCurrentDirectory | ( | const OSD_Path & | where | ) |
| void OSD_Process::Spawn | ( | const TCollection_AsciiString & | cmd, |
| const Standard_Boolean | ShowWindow = Standard_True |
||
| ) |
1.8.0