13 #ifndef mitkAbstractFileWriter_h
14 #define mitkAbstractFileWriter_h
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;