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;
71 std::vector<itk::SmartPointer<BaseData>> Read()
override = 0;
77 Options GetOptions()
const override;
78 us::Any GetOption(
const std::string &name)
const override;
80 void SetOptions(
const Options &options)
override;
81 void SetOption(
const std::string &name,
const us::Any &value)
override;
102 void UnregisterService();
107 std::vector< std::string > GetReadFiles()
override;
125 std::istream *m_Stream;
175 void SetMimeTypePrefix(
const std::string &prefix);
176 std::string GetMimeTypePrefix()
const;
178 void SetDescription(
const std::string &description);
179 std::string GetDescription()
const;
181 void SetDefaultOptions(
const Options &defaultOptions);
182 Options GetDefaultOptions()
const;
194 void SetRanking(
int ranking);
195 int GetRanking()
const;
215 std::string GetLocalFileName()
const;
217 virtual void SetDefaultDataNodeProperties(
DataNode *node,
const std::string &filePath);
227 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
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.
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.