13 #ifndef mitkAbstractFileReader_h
14 #define mitkAbstractFileReader_h
45 void SetInput(
const std::string &location)
override;
47 void SetInput(
const std::string &location, std::istream *is)
override;
49 std::string GetInputLocation()
const override;
51 std::istream *GetInputStream()
const override;
53 MimeType GetRegisteredMimeType()
const;
62 std::vector<itk::SmartPointer<BaseData>> Read()
override;
68 Options GetOptions()
const override;
69 us::Any GetOption(
const std::string &name)
const override;
71 void SetOptions(
const Options &options)
override;
72 void SetOption(
const std::string &name,
const us::Any &value)
override;
91 void UnregisterService();
96 std::vector< std::string > GetReadFiles()
override;
116 std::istream *m_Stream;
157 virtual std::vector<itk::SmartPointer<BaseData>> DoRead() = 0;
184 void SetMimeTypePrefix(
const std::string &prefix);
185 std::string GetMimeTypePrefix()
const;
187 void SetDescription(
const std::string &description);
188 std::string GetDescription()
const;
190 void SetDefaultOptions(
const Options &defaultOptions);
191 Options GetDefaultOptions()
const;
203 void SetRanking(
int ranking);
204 int GetRanking()
const;
224 std::string GetLocalFileName()
const;
226 virtual void SetDefaultDataNodeProperties(
DataNode *node,
const std::string &filePath);
238 std::unique_ptr<Impl> d;