GDCM
2.2.0
|
Writer ala DOM (Document Object Model) This class is a non-validating writer, it will only performs well- formedness check only. More...
#include <gdcmWriter.h>
Public Member Functions | |
Writer () | |
virtual | ~Writer () |
void | CheckFileMetaInformationOff () |
void | CheckFileMetaInformationOn () |
File & | GetFile () |
void | SetCheckFileMetaInformation (bool b) |
Undocumented function, do not use (= leave default) | |
void | SetFile (const File &f) |
Set/Get the DICOM file (DataSet + Header) | |
void | SetFileName (const char *filename_native) |
Set the filename of DICOM file to write: | |
void | SetStream (std::ostream &output_stream) |
Set user ostream buffer. | |
virtual bool | Write () |
Main function to tell the writer to write. | |
Protected Member Functions | |
std::ostream * | GetStreamPtr () const |
void | SetWriteDataSetOnly (bool b) |
Protected Attributes | |
std::ofstream * | Ofstream |
std::ostream * | Stream |
Friends | |
class | StreamImageWriter |
Writer ala DOM (Document Object Model) This class is a non-validating writer, it will only performs well- formedness check only.
Detailled description here To avoid GDCM being yet another broken DICOM lib we try to be user level and avoid writing illegal stuff (odd length, non-zero value for Item start/end length ...) Therefore you cannot (well unless you are really smart) write DICOM with even length tag. All the checks are consider basics:
virtual gdcm::Writer::~Writer | ( | ) | [virtual] |
void gdcm::Writer::CheckFileMetaInformationOff | ( | ) | [inline] |
void gdcm::Writer::CheckFileMetaInformationOn | ( | ) | [inline] |
File& gdcm::Writer::GetFile | ( | ) | [inline] |
std::ostream* gdcm::Writer::GetStreamPtr | ( | ) | const [inline, protected] |
void gdcm::Writer::SetCheckFileMetaInformation | ( | bool | b | ) | [inline] |
Undocumented function, do not use (= leave default)
void gdcm::Writer::SetFile | ( | const File & | f | ) | [inline] |
Set/Get the DICOM file (DataSet + Header)
void gdcm::Writer::SetFileName | ( | const char * | filename_native | ) |
Set the filename of DICOM file to write:
void gdcm::Writer::SetStream | ( | std::ostream & | output_stream | ) | [inline] |
Set user ostream buffer.
void gdcm::Writer::SetWriteDataSetOnly | ( | bool | b | ) | [inline, protected] |
virtual bool gdcm::Writer::Write | ( | ) | [virtual] |
Main function to tell the writer to write.
Reimplemented in gdcm::PixmapWriter, gdcm::ImageWriter, gdcm::SurfaceWriter, and gdcm::SegmentWriter.
friend class StreamImageWriter [friend] |
std::ofstream* gdcm::Writer::Ofstream [protected] |
std::ostream* gdcm::Writer::Stream [protected] |