Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
process.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
10
#include "
ids/id.h
"
11
namespace
System
12
{
13
ID_32_TYPE
(
ProcessId
);
14
15
struct
ProcessStartInfo
16
{
17
IO::URI
exePath
;
18
IO::URI
workingDir
;
19
Util::String
args
;
20
bool
consoleWindow
;
21
Ptr<IO::Stream>
outputStream
,
errorStream
;
22
};
23
25
ProcessId
StartProcess
(
const
ProcessStartInfo
& createInfo);
27
void
UpdateProcessStreams
(
ProcessId
processId);
29
bool
IsProcessRunning
(
ProcessId
processId);
31
uint
WaitForProcess
(
ProcessId
processId);
32
33
}
// namespace System
IO::URI
An URI object can split a Uniform Resource Identifier string into its components or build a string fr...
Definition
uri.h:67
Ptr
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition
ptr.h:38
Util::String
Nebula's universal string class.
Definition
string.h:50
id.h
ID_32_TYPE
#define ID_32_TYPE(x)
Definition
id.h:16
System
Definition
osxsysfunc.h:15
System::WaitForProcess
uint WaitForProcess(ProcessId processId)
Wait for process, then frees it and returns the error code.
Definition
posixprocess.cc:387
System::StartProcess
ProcessId StartProcess(const ProcessStartInfo &createInfo)
Create a process.
Definition
posixprocess.cc:318
System::IsProcessRunning
bool IsProcessRunning(ProcessId processId)
Returns true if process is running (poll).
Definition
posixprocess.cc:352
System::UpdateProcessStreams
void UpdateProcessStreams(ProcessId processId)
Update streams.
Definition
posixprocess.cc:333
System::ProcessId
Definition
process.h:13
System::ProcessStartInfo
Definition
process.h:16
System::ProcessStartInfo::args
Util::String args
Definition
process.h:19
System::ProcessStartInfo::outputStream
Ptr< IO::Stream > outputStream
Definition
process.h:21
System::ProcessStartInfo::consoleWindow
bool consoleWindow
Definition
process.h:20
System::ProcessStartInfo::errorStream
Ptr< IO::Stream > errorStream
Definition
process.h:21
System::ProcessStartInfo::exePath
IO::URI exePath
Definition
process.h:17
System::ProcessStartInfo::workingDir
IO::URI workingDir
Definition
process.h:18
uint
unsigned int uint
Definition
types.h:33
code
foundation
system
process.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.