13 #ifndef AbstractFileWriter_H_HEADER_INCLUDED_C1E7E521 14 #define AbstractFileWriter_H_HEADER_INCLUDED_C1E7E521 32 struct PrototypeServiceFactory;
53 void SetInput(
const BaseData *data)
override;
54 const BaseData *GetInput()
const override;
56 void SetOutputLocation(
const std::string &location)
override;
57 std::string GetOutputLocation()
const override;
59 void SetOutputStream(
const std::string &location, std::ostream *os)
override;
60 std::ostream *GetOutputStream()
const override;
78 void Write()
override = 0;
82 MimeType GetRegisteredMimeType()
const;
84 Options GetOptions()
const override;
85 us::Any GetOption(
const std::string &name)
const override;
87 void SetOptions(
const Options &options)
override;
88 void SetOption(
const std::string &name,
const us::Any &value)
override;
95 void UnregisterService();
115 std::string GetFileName();
124 std::unique_ptr<Impl> d;
142 std::ostream *m_Stream;
177 void SetMimeTypePrefix(
const std::string &prefix);
178 std::string GetMimeTypePrefix()
const;
185 void SetDescription(
const std::string &description);
186 std::string GetDescription()
const;
188 void SetDefaultOptions(
const Options &defaultOptions);
189 Options GetDefaultOptions()
const;
201 void SetRanking(
int ranking);
202 int GetRanking()
const;
210 void SetBaseDataType(
const std::string &baseDataType);
211 virtual std::string GetBaseDataType()
const;
213 void ValidateOutputLocation()
const;
221 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...
ConfidenceLevel
A confidence level describing the confidence of the reader or writer in handling the given data...
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
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.