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

find_scu - DICOM C-FIND SCU utility (dcmtk-compatible) More...

#include "kcenon/pacs/core/dicom_dataset.h"
#include "kcenon/pacs/core/dicom_tag.h"
#include "kcenon/pacs/core/dicom_tag_constants.h"
#include "kcenon/pacs/encoding/vr_type.h"
#include "kcenon/pacs/network/association.h"
#include "kcenon/pacs/network/dimse/dimse_message.h"
#include "kcenon/pacs/services/query_scp.h"
#include <algorithm>
#include <chrono>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <regex>
#include <sstream>
#include <string>
#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

find_scu - DICOM C-FIND SCU utility (dcmtk-compatible)

Definition in file main.cpp.

Function Documentation

◆ main()

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

Definition at line 943 of file main.cpp.

943 {
944 options opts;
945
946 if (!parse_arguments(argc, argv, opts)) {
947 if (!opts.show_help && !opts.show_version) {
948 std::cerr << "\nUse --help for usage information.\n";
949 return 2;
950 }
951 }
952
953 if (opts.show_version) {
954 print_version();
955 return 0;
956 }
957
958 if (opts.show_help) {
959 print_banner();
960 print_usage(argv[0]);
961 return 0;
962 }
963
964 // Print banner unless quiet mode or structured output
965 bool suppress_banner = opts.quiet ||
966 opts.format == output_format::json ||
967 opts.format == output_format::csv ||
968 opts.format == output_format::xml;
969
970 if (!suppress_banner) {
971 print_banner();
972 }
973
974 return perform_query(opts);
975}