PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
kcenon::pacs::integration_test::dcmtk_result Struct Reference

Result of a DCMTK tool execution. More...

#include <dcmtk_tool.h>

Collaboration diagram for kcenon::pacs::integration_test::dcmtk_result:
Collaboration graph

Public Member Functions

bool success () const noexcept
 
bool has_error () const noexcept
 

Public Attributes

int exit_code {-1}
 Process exit code.
 
std::string stdout_output
 Standard output.
 
std::string stderr_output
 Standard error.
 
std::chrono::milliseconds duration {0}
 Execution duration.
 
bool timed_out {false}
 Whether the process timed out.
 

Detailed Description

Result of a DCMTK tool execution.

Definition at line 36 of file dcmtk_tool.h.

Member Function Documentation

◆ has_error()

bool kcenon::pacs::integration_test::dcmtk_result::has_error ( ) const
inlinenodiscardnoexcept
Returns
true if stderr contains output

Definition at line 47 of file dcmtk_tool.h.

47{ return !stderr_output.empty(); }
std::string stderr_output
Standard error.
Definition dcmtk_tool.h:39

References stderr_output.

Referenced by TEST_CASE().

Here is the caller graph for this function:

◆ success()

bool kcenon::pacs::integration_test::dcmtk_result::success ( ) const
inlinenodiscardnoexcept
Returns
true if command succeeded (exit code 0)

Definition at line 44 of file dcmtk_tool.h.

44{ return exit_code == 0; }

References exit_code.

Referenced by TEST_CASE().

Here is the caller graph for this function:

Member Data Documentation

◆ duration

std::chrono::milliseconds kcenon::pacs::integration_test::dcmtk_result::duration {0}

Execution duration.

Definition at line 40 of file dcmtk_tool.h.

40{0};

Referenced by kcenon::pacs::integration_test::dcmtk_tool::run_tool().

◆ exit_code

int kcenon::pacs::integration_test::dcmtk_result::exit_code {-1}

◆ stderr_output

std::string kcenon::pacs::integration_test::dcmtk_result::stderr_output

Standard error.

Definition at line 39 of file dcmtk_tool.h.

Referenced by has_error(), kcenon::pacs::integration_test::dcmtk_tool::run_tool(), and TEST_CASE().

◆ stdout_output

std::string kcenon::pacs::integration_test::dcmtk_result::stdout_output

◆ timed_out

bool kcenon::pacs::integration_test::dcmtk_result::timed_out {false}

Whether the process timed out.

Definition at line 41 of file dcmtk_tool.h.

41{false};

Referenced by kcenon::pacs::integration_test::dcmtk_tool::run_tool().


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