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

JSON to DICOM Converter - DICOM PS3.18 JSON Representation. More...

#include "kcenon/pacs/core/dicom_dictionary.h"
#include "kcenon/pacs/core/dicom_file.h"
#include "kcenon/pacs/core/dicom_tag_constants.h"
#include "kcenon/pacs/encoding/transfer_syntax.h"
#include "kcenon/pacs/encoding/vr_type.h"
#include <algorithm>
#include <cctype>
#include <cstdint>
#include <filesystem>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <optional>
#include <sstream>
#include <string>
#include <variant>
#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

JSON to DICOM Converter - DICOM PS3.18 JSON Representation.

Definition in file main.cpp.

Function Documentation

◆ main()

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

Definition at line 853 of file main.cpp.

853 {
854 options opts;
855
856 if (!parse_arguments(argc, argv, opts)) {
857 std::cout << R"(
858 _ ____ ___ _ _ _____ ___ ____ ____ __ __
859 | / ___| / _ \| \ | | |_ _|/ _ \ | _ \ / ___| \/ |
860 _ | \___ \| | | | \| | | | | | | | | | | | | | |\/| |
861 | |_| |___) | |_| | |\ | | | | |_| | | |_| | |___| | | |
862 \___/|____/ \___/|_| \_| |_| \___/ |____/ \____|_| |_|
863
864 JSON to DICOM Converter (PS3.18)
865)" << "\n";
866 print_usage(argv[0]);
867 return 1;
868 }
869
870 // Check if input path exists
871 if (!std::filesystem::exists(opts.input_path)) {
872 std::cerr << "Error: Input file does not exist: " << opts.input_path.string() << "\n";
873 return 2;
874 }