13#ifndef DCM_TREE_IOPARAMETER_H
14#define DCM_TREE_IOPARAMETER_H
20 #pragma warning (push)
21 #pragma warning (disable : 4251)
69 ReadPixelDataLazily = 2,
83 bool readPrivateTags =
true,
bool convertToUTF8 =
true,
const std::string& pixelBufferFilename = std::string() );
142 unsigned int _numberOfToleratedBadTags;
148 #pragma warning (pop)
base class to wrap parameters to be used for reading/writing messages this is needed because the tool...
static Const_IOParameterPtr prototype()
the current concrete prototype
virtual int getFlags() const =0
Returns the flags passed to the constructor.
static IOParameterPtr create(const std::string &filename, bool readImage=true, bool readPrivateTags=true, bool convertToUTF8=true, const std::string &pixelBufferFilename=std::string())
abstract factory create method
static void setPrototype(Const_IOParameterPtr prototype)
The concrete prototype is set by the implementing DLL.
IOParameter & operator=(const IOParameter &other)
assignment operator (makes deep copy)
virtual std::string filename() const =0
name of the file to be read or written
virtual bool readPixelData() const =0
true if the reader should read the binary pixel data
IOParameter(const IOParameter &other)
copy - ctor
static IOParameterPtr create(const std::string &filename, int flags, const std::string &pixelBufferFilename=std::string())
abstract factory create method
virtual ~IOParameter()
dtor
Flags
Flags to be or'ed together for create().
virtual unsigned int getNumberOfToleratedBadTags() const
returns number of tolerated bad tags which are found in a file before skipping it as bad
virtual std::string pixelBufferFilename() const =0
name of the optional pixel buffer file containing the image data to be written
virtual bool convertToUTF8() const =0
true if character should be converted to UTF8
virtual bool readPrivateTags() const =0
true if private tags should be read
virtual void setNumberOfToleratedBadTags(unsigned int numBadTags=5)
set number of tolerated bad tags which are found in a file before skipping it as bad
virtual IOParameterPtr createConcrete(const std::string &filename, int flags, const std::string &pixelBufferFilename) const =0
concrete factory create method of the implementing prototype, called by the abstract one
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
class to dump a DCMTree dicom message into a human readable file this class could be used as a starte...
boost::shared_ptr< IOParameter > IOParameterPtr
boost::shared_ptr< const IOParameter > Const_IOParameterPtr