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

Worklist SCU - Modality Worklist Query Client. More...

#include "worklist_result_formatter.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/services/worklist_scp.h"
#include "kcenon/pacs/services/worklist_scu.h"
#include <chrono>
#include <cstdlib>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <optional>
#include <sstream>
#include <string>
#include <utility>
#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

Worklist SCU - Modality Worklist Query Client.

Definition in file main.cpp.

Function Documentation

◆ main()

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

Definition at line 582 of file main.cpp.

582 {
583 // Only show banner for table/text format (to not corrupt json/csv/xml output)
584 bool show_banner = true;
585 for (int i = 1; i < argc; ++i) {
586 std::string arg = argv[i];
587 if ((arg == "--format" || arg == "--output" || arg == "-o") && i + 1 < argc) {
588 std::string fmt = argv[i + 1];
589 if (fmt == "json" || fmt == "csv" || fmt == "xml") {
590 show_banner = false;
591 }
592 break;
593 }
594 }
595
596 if (show_banner) {
597 std::cout << R"(
598 __ __ _ _ _ _ ____ ____ _ _
599 \ \ / /__ _ __| | _| (_)___| |_ / ___| / ___| | | |
600 \ \ /\ / / _ \| '__| |/ / | / __| __| \___ \| | | | | |
601 \ V V / (_) | | | <| | \__ \ |_ ___) | |___| |_| |
602 \_/\_/ \___/|_| |_|\_\_|_|___/\__| |____/ \____|\___/
603
604 Modality Worklist Query Client
605)" << "\n";
606 }
607
608 options opts;