PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
main.cpp File Reference

Echo SCU - DICOM Connectivity Test Client (dcmtk-style) More...

#include "kcenon/pacs/network/association.h"
#include "kcenon/pacs/network/dimse/dimse_message.h"
#include "kcenon/pacs/services/verification_scp.h"
#include <chrono>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <sstream>
#include <string>
#include <thread>
#include <vector>
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Detailed Description

Echo SCU - DICOM Connectivity Test Client (dcmtk-style)

Definition in file main.cpp.

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 730 of file main.cpp.

730 {
731 options opts;
732
733 if (!parse_arguments(argc, argv, opts)) {
734 if (!opts.show_help && !opts.show_version) {
735 std::cerr << "\nUse --help for usage information.\n";
736 return 2;
737 }
738 }
739
740 if (opts.show_version) {
741 print_version();
742 return 0;
743 }
744
745 if (opts.show_help) {
746 print_banner();
747 print_usage(argv[0]);
748 return 0;
749 }
750
751 // Print banner unless quiet mode
752 if (opts.verbosity != verbosity_level::quiet) {
753 print_banner();
754 }
755
756 return perform_echo(opts);
757}