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

Query SCU - DICOM C-FIND Client. More...

#include "query_builder.h"
#include "result_formatter.h"
#include "kcenon/pacs/network/association.h"
#include "kcenon/pacs/network/dimse/dimse_message.h"
#include "kcenon/pacs/services/query_scp.h"
#include <chrono>
#include <cstdlib>
#include <iostream>
#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

Query SCU - DICOM C-FIND Client.

Definition in file main.cpp.

Function Documentation

◆ main()

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

Definition at line 460 of file main.cpp.

460 {
461 // Only show banner for table format (to not corrupt json/csv output)
462 bool show_banner = true;
463 for (int i = 1; i < argc; ++i) {
464 if (std::string(argv[i]) == "--format" && i + 1 < argc) {
465 std::string fmt = argv[i + 1];
466 if (fmt == "json" || fmt == "csv") {
467 show_banner = false;
468 }
469 break;
470 }
471 }
472
473 if (show_banner) {
474 std::cout << R"(
475 ___ _ _ _____ ______ __ ____ ____ _ _
476 / _ \| | | | ____| _ \ \ / / / ___| / ___| | | |
477 | | | | | | | _| | |_) \ V / \___ \| | | | | |
478 | |_| | |_| | |___| _ < | | ___) | |___| |_| |
479 \__\_\\___/|_____|_| \_\|_| |____/ \____|\___/
480
481 DICOM C-FIND Client
482)" << "\n";
483 }
484
485 options opts;