Warning, file /include/opencascade/OSD_Process.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _OSD_Process_HeaderFile
0018 #define _OSD_Process_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <OSD_Error.hxx>
0025 #include <TCollection_AsciiString.hxx>
0026
0027 class Quantity_Date;
0028 class OSD_Path;
0029
0030
0031 #ifdef SetCurrentDirectory
0032 # undef SetCurrentDirectory
0033 #endif
0034
0035
0036 class OSD_Process
0037 {
0038 public:
0039
0040
0041 Standard_EXPORT static TCollection_AsciiString ExecutablePath();
0042
0043
0044 Standard_EXPORT static TCollection_AsciiString ExecutableFolder();
0045
0046 public:
0047
0048 DEFINE_STANDARD_ALLOC
0049
0050
0051 Standard_EXPORT OSD_Process();
0052
0053
0054 Standard_EXPORT void TerminalType (TCollection_AsciiString& Name);
0055
0056
0057 Standard_EXPORT Quantity_Date SystemDate();
0058
0059
0060 Standard_EXPORT TCollection_AsciiString UserName();
0061
0062
0063 Standard_EXPORT Standard_Boolean IsSuperUser();
0064
0065
0066 Standard_EXPORT Standard_Integer ProcessId();
0067
0068
0069 Standard_EXPORT OSD_Path CurrentDirectory();
0070
0071
0072 Standard_EXPORT void SetCurrentDirectory (const OSD_Path& where);
0073
0074
0075 Standard_EXPORT Standard_Boolean Failed() const;
0076
0077
0078 Standard_EXPORT void Reset();
0079
0080
0081 Standard_EXPORT void Perror();
0082
0083
0084 Standard_EXPORT Standard_Integer Error() const;
0085
0086 private:
0087 OSD_Error myError;
0088 };
0089
0090 #endif