odil
|
Write DICOM objects to a stream. More...
#include <Writer.h>
Public Types | |
enum | ItemEncoding { ExplicitLength, UndefinedLength } |
Encodings of sequence items. | |
Public Member Functions | |
Writer (std::ostream &stream, ByteOrdering byte_ordering, bool explicit_vr, ItemEncoding item_encoding=ItemEncoding::ExplicitLength, bool use_group_length=false) | |
Build a writer. | |
Writer (std::ostream &stream, std::string const &transfer_syntax, ItemEncoding item_encoding=ItemEncoding::ExplicitLength, bool use_group_length=false) | |
Build a writer, derive byte ordering and explicit-ness of VR from transfer syntax. | |
void | write_data_set (DataSet const &data_set) const |
Write a data set. | |
void | write_tag (Tag const &tag) const |
Write a tag. | |
void | write_element (Element const &element) const |
Write an element (VR, VL and value). | |
Static Public Member Functions | |
static void | write_file (DataSet const &data_set, std::ostream &stream, DataSet const &meta_information=DataSet(), std::string const &transfer_syntax=registry::ExplicitVRLittleEndian, ItemEncoding item_encoding=ItemEncoding::ExplicitLength, bool use_group_length=false) |
Write a file (meta-information and data set). | |
Public Attributes | |
std::ostream & | stream |
Output stream. | |
ByteOrdering | byte_ordering |
Endianness. | |
bool | explicit_vr |
Explicit-ness of the Value Representations. | |
ItemEncoding | item_encoding |
Encoding of sequence items. | |
bool | use_group_length |
Presence of group length elements. | |
Write DICOM objects to a stream.