13 #ifndef AbstractFileReader_H_HEADER_INCLUDED_C1E7E521 14 #define AbstractFileReader_H_HEADER_INCLUDED_C1E7E521 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;
114 std::istream *m_Stream;
155 virtual std::vector<itk::SmartPointer<BaseData>> DoRead() = 0;
182 void SetMimeTypePrefix(
const std::string &prefix);
183 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;
222 std::string GetLocalFileName()
const;
224 virtual void SetDefaultDataNodeProperties(
DataNode *node,
const std::string &filePath);
234 std::unique_ptr<Impl> d;
Data management class that handles 'was created by' relations.
DataCollection - Class to facilitate loading/accessing structured data.
std::map< std::string, us::Any > Options
Options for reading or writing data.
std::vector< std::string > m_ReadFiles
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...
The MimeType class represens a registered mime-type. It is an immutable wrapper for mitk::CustomMimeT...
US_UNORDERED_MAP_TYPE< std::string, Any > ServiceProperties
Base class for creating mitk::BaseData objects from files or streams.
The common interface for all MITK file readers.
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.
Class for nodes of the DataTree.