libnick 2024.12.0
A cross-platform base for native Nickvision applications.
Loading...
Searching...
No Matches
processexitedeventargs.h
Go to the documentation of this file.
1
23#ifndef PROCESSEXITEDEVENTARGS_H
24#define PROCESSEXITEDEVENTARGS_H
25
26#include <string>
27#include "events/eventargs.h"
28
29namespace Nickvision::System
30{
35 {
36 public:
42 ProcessExitedEventArgs(int exitCode, const std::string& output);
47 int getExitCode() const;
52 const std::string& getOutput() const;
53
54 private:
55 int m_exitCode;
56 std::string m_output;
57 };
58}
59
60#endif //PROCESSEXITEDEVENTARGS_H
A base class for event arguments.
Definition eventargs.h:32
An event argument for when a process has exited.
Definition processexitedeventargs.h:35
int getExitCode() const
Gets the exit code of the process.
const std::string & getOutput() const
Gets the console output of the process.
ProcessExitedEventArgs(int exitCode, const std::string &output)
Constructs a ProcessExitedEventArgs.
Definition deploymentmode.h:27