diff options
author | Bryon Bean <bryon.bean@kitware.com> | 2017-10-23 12:16:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-01-10 15:19:14 (GMT) |
commit | 3dd2edf4ab94f5044b73b20151592c8e94a5160a (patch) | |
tree | 06fa23b1b2e78bd60231c50786fa2402a0bb376a /Source/CTest/cmProcess.h | |
parent | 5238e6db70d275e42048479b737781fc97d82ea1 (diff) | |
download | CMake-3dd2edf4ab94f5044b73b20151592c8e94a5160a.zip CMake-3dd2edf4ab94f5044b73b20151592c8e94a5160a.tar.gz CMake-3dd2edf4ab94f5044b73b20151592c8e94a5160a.tar.bz2 |
cmProcess: Use explicit enum for process state
Translate the values from KWSys Process.
Diffstat (limited to 'Source/CTest/cmProcess.h')
-rw-r--r-- | Source/CTest/cmProcess.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Source/CTest/cmProcess.h b/Source/CTest/cmProcess.h index 32c4c74..79379aa 100644 --- a/Source/CTest/cmProcess.h +++ b/Source/CTest/cmProcess.h @@ -30,8 +30,19 @@ public: // Return true if the process starts bool StartProcess(); - // return the process status - int GetProcessStatus(); + enum class State + { + Starting, + Error, + Exception, + Executing, + Exited, + Expired, + Killed, + Disowned + }; + + State GetProcessStatus(); int GetId() { return this->Id; } void SetId(int id) { this->Id = id; } int GetExitValue() { return this->ExitValue; } |