17 #ifndef AbstractFileReader_H_HEADER_INCLUDED_C1E7E521
18 #define AbstractFileReader_H_HEADER_INCLUDED_C1E7E521
49 virtual void SetInput(
const std::string &location)
override;
51 virtual void SetInput(
const std::string &location, std::istream *is)
override;
53 virtual std::string GetInputLocation()
const override;
55 virtual std::istream *GetInputStream()
const override;
57 MimeType GetRegisteredMimeType()
const;
75 virtual std::vector<itk::SmartPointer<BaseData>> Read()
override = 0;
81 virtual Options GetOptions()
const override;
82 virtual us::Any GetOption(
const std::string &name)
const override;
84 virtual void SetOptions(
const Options &options)
override;
85 virtual void SetOption(
const std::string &name,
const us::Any &value)
override;
89 virtual void RemoveProgressCallback(
const ProgressCallback &callback)
override;
106 void UnregisterService();
124 std::istream *m_Stream;
174 void SetMimeTypePrefix(
const std::string &prefix);
175 std::string GetMimeTypePrefix()
const;
177 void SetDescription(
const std::string &description);
178 std::string GetDescription()
const;
180 void SetDefaultOptions(
const Options &defaultOptions);
181 Options GetDefaultOptions()
const;
193 void SetRanking(
int ranking);
194 int GetRanking()
const;
214 std::string GetLocalFileName()
const;
216 virtual void SetDefaultDataNodeProperties(
DataNode *node,
const std::string &filePath);
224 std::unique_ptr<Impl> d;
Data management class that handles 'was created by' relations.
itk::SmartPointer< Self > Pointer
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...
The MimeType class represens a registered mime-type. It is an immutable wrapper for mitk::CustomMimeT...
US_UNORDERED_MAP_TYPE< std::string, Any > ServiceProperties
static bool in(Reader::Char c, Reader::Char c1, Reader::Char c2, Reader::Char c3, Reader::Char c4)
Base class for creating mitk::BaseData objects from files or streams.
ConfidenceLevel
A confidence level describing the confidence of the reader or writer in handling the given data...
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.