9 #ifndef _ca5c06d2_04f9_4009_9e98_5607e1060379
10 #define _ca5c06d2_04f9_4009_9e98_5607e1060379
32 enum class ItemEncoding
39 std::ostream & stream;
48 bool use_group_length;
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={},
94 ItemEncoding item_encoding=ItemEncoding::ExplicitLength,
95 bool use_group_length=
false);
101 typedef void result_type;
103 std::ostream & stream;
108 ItemEncoding item_encoding;
109 bool use_group_length;
112 std::ostream & stream,
VR vr,
113 ByteOrdering byte_ordering,
bool explicit_vr, ItemEncoding item_encoding,
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