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

Store SCU - DICOM Image Sender (dcmtk-style) More...

#include "kcenon/pacs/core/dicom_file.h"
#include "kcenon/pacs/core/dicom_tag_constants.h"
#include "kcenon/pacs/network/association.h"
#include "kcenon/pacs/services/storage_scu.h"
#include <algorithm>
#include <chrono>
#include <cstdlib>
#include <filesystem>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <sstream>
#include <string>
#include <vector>
Include dependency graph for main.cpp:

Go to the source code of this file.

Namespaces

namespace  ts
 Transfer Syntax UIDs.
 

Functions

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

Detailed Description

Store SCU - DICOM Image Sender (dcmtk-style)

Definition in file main.cpp.

Function Documentation

◆ main()

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

Definition at line 1108 of file main.cpp.

1108 {
1109 options opts;
1110
1111 if (!parse_arguments(argc, argv, opts)) {
1112 if (!opts.show_help && !opts.show_version) {
1113 std::cerr << "\nUse --help for usage information.\n";
1114 return 2;
1115 }
1116 }
1117
1118 if (opts.show_version) {
1119 print_version();
1120 return 0;
1121 }
1122
1123 if (opts.show_help) {
1124 print_banner();
1125 print_usage(argv[0]);
1126 return 0;
1127 }
1128
1129 // Print banner unless quiet mode
1130 if (opts.verbosity != verbosity_level::quiet) {
1131 print_banner();
1132 }
1133
1134 return perform_store(opts);
1135}