9 #ifndef _ca5c06d2_04f9_4009_9e98_5607e1060379 10 #define _ca5c06d2_04f9_4009_9e98_5607e1060379 55 static void write_binary(
56 T
const & value, std::ostream & stream,
ByteOrdering byte_ordering);
59 static void write_encapsulated_pixel_data(
65 std::ostream & stream,
68 bool use_group_length=
false);
75 std::ostream & stream,
76 std::string
const & transfer_syntax,
78 bool use_group_length=
false);
81 void write_data_set(std::shared_ptr<DataSet const> data_set)
const;
84 void write_tag(
Tag const & tag)
const;
87 void write_element(
Element const & element)
const;
90 static void write_file(
91 std::shared_ptr<DataSet const> data_set, std::ostream & stream,
92 std::shared_ptr<DataSet const> meta_information={},
95 bool use_group_length=
false);
101 typedef void result_type;
103 std::ostream & stream;
109 bool use_group_length;
112 std::ostream & stream,
VR vr,
114 bool use_group_length);
117 result_type operator()(
Value::Reals const & value)
const;
123 void write_strings(T
const & sequence,
char padding)
const;
129 #include "odil/Writer.txx" 131 #endif // _ca5c06d2_04f9_4009_9e98_5607e1060379 std::vector< String > Strings
String container.
Definition: Value.h:57
std::vector< Real > Reals
Real container.
Definition: Value.h:54
std::string const ExplicitVRLittleEndian("1.2.840.10008.1.2.1")
Element of a DICOM data set.
Definition: Element.h:26
Definition: Association.h:24
Write DICOM objects to a stream.
Definition: Writer.h:28
ItemEncoding item_encoding
Encoding of sequence items.
Definition: Writer.h:46
bool use_group_length
Presence of group length elements.
Definition: Writer.h:48
A DICOM element tag.
Definition: Tag.h:24
#define ODIL_API
Definition: odil.h:28
bool explicit_vr
Explicit-ness of the Value Representations.
Definition: Writer.h:44
ByteOrdering
Definition: endian.h:29
std::vector< std::shared_ptr< DataSet > > DataSets
Data sets container.
Definition: Value.h:60
std::vector< Integer > Integers
Integer container.
Definition: Value.h:51
std::vector< std::vector< uint8_t > > Binary
Binary data container.
Definition: Value.h:63
std::ostream & stream
Output stream.
Definition: Writer.h:39
ItemEncoding
Encodings of sequence items.
Definition: Writer.h:32
VR
Value representations of DICOM.
Definition: VR.h:22
ByteOrdering byte_ordering
Endianness.
Definition: Writer.h:42