13#ifndef DCM_TREE_IOPARAMETER_H 
   14#define DCM_TREE_IOPARAMETER_H 
   20  #pragma warning (push) 
   21  #pragma warning (disable : 4251) 
   56      ReadPixelDataLazily = 2,         
 
 
   70      bool readPrivateTags = 
true, 
bool convertToUTF8 = 
true, 
const std::string& pixelBufferFilename = std::string() );
 
   78    static IOParameterPtr create(
const std::string& filename, 
int flags, 
const std::string& pixelBufferFilename = std::string());
 
  138    unsigned int _numberOfToleratedBadTags;
 
 
  144  #pragma warning (pop) 
Base class to wrap parameters to be used for reading/writing messages.
 
static Const_IOParameterPtr prototype()
Returns the current concrete prototype.
 
virtual int getFlags() const =0
Returns the flags passed to the constructor.
 
virtual const std::string & dicomContent() const =0
Returns the content of a (virtual) DICOM file.
 
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 that makes a deep copy.
 
virtual std::string filename() const =0
Returns the name of the file to be read or written.
 
virtual bool readPixelData() const =0
Returns true if the reader should read the binary pixel data.
 
IOParameter()
Constructor.
 
IOParameter(const IOParameter &other)
Copy constructor.
 
static IOParameterPtr create(const std::string &filename, int flags, const std::string &pixelBufferFilename=std::string())
Abstract factory create method.
 
virtual ~IOParameter()
Destructor.
 
Flags
Flags to be OR'd together for create().
 
virtual void setDicomContent(const std::string &content)=0
If a DICOM content is set, any further read operation will use this content instead of a filename (wh...
 
virtual unsigned int getNumberOfToleratedBadTags() const
Returns the number of tolerated bad tags that are found in a file before skipping it as bad.
 
virtual std::string pixelBufferFilename() const =0
Returns the name of the optional pixel buffer file containing the image data to be written.
 
virtual bool convertToUTF8() const =0
Returns true if character should be converted to UTF-8.
 
virtual bool readPrivateTags() const =0
Returns true if private tags should be read.
 
virtual void setNumberOfToleratedBadTags(unsigned int numBadTags=5)
Sets the number of tolerated bad tags that 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.
 
Class to dump a DCMTree DICOM message into a human-readable file.
 
boost::shared_ptr< IOParameter > IOParameterPtr
 
boost::shared_ptr< const IOParameter > Const_IOParameterPtr