17 #ifndef AbstractFileWriter_H_HEADER_INCLUDED_C1E7E521
18 #define AbstractFileWriter_H_HEADER_INCLUDED_C1E7E521
36 struct PrototypeServiceFactory;
57 virtual void SetInput(
const BaseData *data)
override;
58 virtual const BaseData *GetInput()
const override;
60 virtual void SetOutputLocation(
const std::string &location)
override;
61 virtual std::string GetOutputLocation()
const override;
63 virtual void SetOutputStream(
const std::string &location, std::ostream *os)
override;
64 virtual std::ostream *GetOutputStream()
const override;
82 virtual void Write()
override = 0;
86 MimeType GetRegisteredMimeType()
const;
88 virtual Options GetOptions()
const override;
89 virtual us::Any GetOption(
const std::string &name)
const override;
91 virtual void SetOptions(
const Options &options)
override;
92 virtual void SetOption(
const std::string &name,
const us::Any &value)
override;
96 virtual void RemoveProgressCallback(
const ProgressCallback &callback)
override;
99 void UnregisterService();
119 std::string GetFileName();
128 std::unique_ptr<Impl> d;
146 std::ostream *m_Stream;
181 void SetMimeTypePrefix(
const std::string &prefix);
182 std::string GetMimeTypePrefix()
const;
189 void SetDescription(
const std::string &description);
190 std::string GetDescription()
const;
192 void SetDefaultOptions(
const Options &defaultOptions);
193 Options GetDefaultOptions()
const;
205 void SetRanking(
int ranking);
206 int GetRanking()
const;
214 void SetBaseDataType(
const std::string &baseDataType);
215 virtual std::string GetBaseDataType()
const;
217 void ValidateOutputLocation()
const;
225 std::unique_ptr<Impl> d;
Base of all data objects.
An output stream wrapper.
DataCollection - Class to facilitate loading/accessing structured data.
std::map< std::string, us::Any > Options
Options for reading or writing data.
The CustomMimeType class represents a custom mime-type which may be registered as a service object...
A local file representation for streams.
The MimeType class represens a registered mime-type. It is an immutable wrapper for mitk::CustomMimeT...
US_UNORDERED_MAP_TYPE< std::string, Any > ServiceProperties
ConfidenceLevel
A confidence level describing the confidence of the reader or writer in handling the given data...
The common interface of all MITK file writers.
Base class for writing mitk::BaseData objects to files or streams.
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.