2#ifndef _aspose_system_diagnostics_process_h_
3#define _aspose_system_diagnostics_process_h_
7#include "system/object.h"
8#include "system/string.h"
9#include "system/io/stream_reader.h"
10#include "system/diagnostics/process_start_info.h"
16namespace System {
namespace Diagnostics {
33 ASPOSECPP_SHARED_API
bool Start();
84 ASPOSECPP_SHARED_API
void ResetPipe();
89 FILE* m_pipe =
nullptr;
95 bool m_enable_raising_events =
false;
98 void* m_process_handle = 0x0;
Encapsulates process information and manipulation. Objects of this class should only be allocated usi...
Definition: process.h:23
void set_EnableRaisingEvents(bool enable_raising_events)
Sets whether the event Exited should be raised when the process terminates.
SharedPtr< ProcessStartInfo > get_StartInfo() const
Gets process start information.
String get_ProcessName() const
Gets process name.
int get_ExitCode() const
Gets process exit code.
String GetOutputText() const
Gets process output text.
SharedPtr< System::IO::StreamReader > get_StandardError() const
Provides reader to read from process error output. Not implemented.
static SharedPtr< Process > Start(const SharedPtr< ProcessStartInfo > &start_info)
Starts process with specified path and arguments.
static SharedPtr< Process > Start(const String &filename, const String &arguments=String::Empty)
Starts process with specified path and arguments.
virtual ~Process()
Destructor.
int64_t get_PrivateMemorySize64() const
Gets process private memory set size.
bool WaitForExit(int milliseconds)
Waits for process to exit. Not implemented.
SharedPtr< System::IO::StreamReader > get_StandardOutput() const
Provides reader to read from process standard output. Not implemented.
void WaitForExit()
Waits for process to exit, doesn't return until it's over.
bool get_EnableRaisingEvents() const
Gets whether the event Exited should be raised when the process terminates.
bool Start()
Starts process with pre-defined parameters.
static SharedPtr< Process > GetCurrentProcess()
Gets information on current process. Windows only.
int64_t get_WorkingSet64() const
Gets process memory working set size.
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
static const String Empty
Empty string.
Definition: string.h:894
Definition: db_command.h:9