PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
mtom_packager.h
Go to the documentation of this file.
1// BSD 3-Clause License
2// Copyright (c) 2021-2025, 🍀☀🌕🌥 🌊
3// See the LICENSE file in the project root for full license information.
4
15#pragma once
16
17#include <kcenon/common/patterns/result.h>
19
20#include <cstdint>
21#include <string>
22#include <vector>
23
25
33struct mtom_part {
34 std::string content_id;
35 std::string mime_type;
36 std::vector<std::uint8_t> content;
37};
38
47 std::string content_type;
48 std::string body;
49};
50
62 const std::string& envelope_xml, const std::vector<mtom_part>& parts);
63
73 std::string root_xml;
74 std::vector<mtom_part> parts;
75};
76
96 const std::string& content_type_header, const std::string& body);
97
98} // namespace kcenon::pacs::ihe::xds::detail
Typed error codes for IHE XDS.b actors (ITI-41 and siblings)
kcenon::common::Result< packaged_mtom > package_mtom(const std::string &envelope_xml, const std::vector< mtom_part > &parts)
Assemble a multipart/related MTOM body.
kcenon::common::Result< parsed_mtom > parse_mtom_response(const std::string &content_type_header, const std::string &body)
Parse a multipart/related MTOM response body.
One attachment part, mapped 1:1 to an xop:Include in the envelope.
std::vector< std::uint8_t > content
Fully assembled MTOM request body.
Result of parsing an inbound multipart/related MTOM response.