libnick 2024.12.0
A cross-platform base for native Nickvision applications.
Loading...
Searching...
No Matches
Nickvision::System::ProcessExitedEventArgs Class Reference

An event argument for when a process has exited. More...

#include <processexitedeventargs.h>

Inheritance diagram for Nickvision::System::ProcessExitedEventArgs:
Nickvision::Events::EventArgs

Public Member Functions

 ProcessExitedEventArgs (int exitCode, const std::string &output)
 Constructs a ProcessExitedEventArgs.
 
int getExitCode () const
 Gets the exit code of the process.
 
const std::string & getOutput () const
 Gets the console output of the process.
 
- Public Member Functions inherited from Nickvision::Events::EventArgs
 EventArgs ()=default
 Constructs an EventArgs.
 

Detailed Description

An event argument for when a process has exited.

Constructor & Destructor Documentation

◆ ProcessExitedEventArgs()

Nickvision::System::ProcessExitedEventArgs::ProcessExitedEventArgs ( int exitCode,
const std::string & output )

Constructs a ProcessExitedEventArgs.

Parameters
exitCodeThe exit code of the process
outputThe console output of the process

Member Function Documentation

◆ getExitCode()

int Nickvision::System::ProcessExitedEventArgs::getExitCode ( ) const

Gets the exit code of the process.

Returns
The exit code of the process

◆ getOutput()

const std::string & Nickvision::System::ProcessExitedEventArgs::getOutput ( ) const

Gets the console output of the process.

Returns
The console output of the process

The documentation for this class was generated from the following file: