|
PACS System 0.1.0
PACS DICOM system library
|
RAII wrapper for a background process. More...
#include <test_fixtures.h>

Public Member Functions | |
| background_process_guard (process_launcher::pid_type pid=process_launcher::invalid_pid) | |
| ~background_process_guard () | |
| background_process_guard (const background_process_guard &)=delete | |
| background_process_guard & | operator= (const background_process_guard &)=delete |
| background_process_guard (background_process_guard &&other) noexcept | |
| background_process_guard & | operator= (background_process_guard &&other) noexcept |
| void | set_pid (process_launcher::pid_type pid) |
| Set the process ID. | |
| process_launcher::pid_type | pid () const noexcept |
| bool | is_running () const |
| Check if process is running. | |
| void | stop () |
| Stop the process. | |
| process_launcher::pid_type | release () |
| Release ownership without stopping. | |
Private Attributes | |
| process_launcher::pid_type | pid_ {process_launcher::invalid_pid} |
RAII wrapper for a background process.
Automatically stops the process when the guard goes out of scope.
Definition at line 1448 of file test_fixtures.h.
|
inlineexplicit |
Definition at line 1450 of file test_fixtures.h.
|
inline |
Definition at line 1454 of file test_fixtures.h.
References stop().

|
delete |
|
inlinenoexcept |
Definition at line 1463 of file test_fixtures.h.
References kcenon::pacs::integration_test::process_launcher::invalid_pid.
|
inlinenodiscard |
Check if process is running.
Definition at line 1484 of file test_fixtures.h.
References kcenon::pacs::integration_test::process_launcher::is_running(), and pid_.
Referenced by kcenon::pacs::integration_test::dcmtk_server_guard::is_running(), and TEST_CASE().


|
inlinenoexcept |
Definition at line 1468 of file test_fixtures.h.
References kcenon::pacs::integration_test::process_launcher::invalid_pid, pid_, and stop().

|
delete |
|
inlinenodiscardnoexcept |
Definition at line 1481 of file test_fixtures.h.
References pid_.
Referenced by kcenon::pacs::integration_test::dcmtk_server_guard::pid(), and set_pid().

|
inline |
Release ownership without stopping.
Definition at line 1497 of file test_fixtures.h.
References kcenon::pacs::integration_test::process_launcher::invalid_pid, and pid_.
|
inline |
Set the process ID.
Definition at line 1478 of file test_fixtures.h.
Referenced by kcenon::pacs::integration_test::dcmtk_server_guard::dcmtk_server_guard().


|
inline |
Stop the process.
Definition at line 1489 of file test_fixtures.h.
References kcenon::pacs::integration_test::process_launcher::invalid_pid, pid_, and kcenon::pacs::integration_test::process_launcher::stop_background().
Referenced by kcenon::pacs::integration_test::dcmtk_tool::echoscp(), operator=(), kcenon::pacs::integration_test::dcmtk_server_guard::stop(), kcenon::pacs::integration_test::dcmtk_tool::storescp(), TEST_CASE(), and ~background_process_guard().


|
private |
Definition at line 1504 of file test_fixtures.h.
Referenced by is_running(), operator=(), pid(), release(), set_pid(), and stop().