25 std::shared_ptr<Preamble> m_preamble;
26 std::shared_ptr<FileMeta> m_file_meta;
27 std::shared_ptr<DataSet> m_data_set;
29 static const std::vector<TransferSyntax>& trial_transfer_syntaxes_when_missing_file_meta();
39 File(
const std::string& file_name,
bool allow_any_explicit_vr =
false);
49 File(std::shared_ptr<std::istream> input,
bool allow_any_explicit_vr =
false);
71 const std::shared_ptr<FileMeta>&
file_meta()
const;
73 const std::shared_ptr<DataSet>&
data_set()
const;
78 void write(
const std::string& filename)
const;
85 void write(std::shared_ptr<std::ostream> os)
const;
const std::shared_ptr< FileMeta > & file_meta() const
A class which wraps the media storage SOP class.
Definition: sop_class.h:20
A class which is used to read/build a DICOM file.
Definition: file.h:23
const std::shared_ptr< DataSet > & data_set() const
void write(const std::string &filename) const
File(const std::string &file_name, bool allow_any_explicit_vr=false)
Reads in existing file with the given file_name.