Template base class for file readers designating what type of data object the reader returns.
More...
#include <inviwo/core/io/datareader.h>
|
| virtual DataReaderType * | clone () const override=0 |
|
| DataReaderType (const DataReaderType &rhs)=default |
|
| DataReaderType (DataReaderType &&rhs) noexcept=default |
|
DataReaderType & | operator= (const DataReaderType &that)=default |
|
DataReaderType & | operator= (DataReaderType &&that) noexcept=default |
| virtual std::shared_ptr< T > | readData (const std::filesystem::path &filePath)=0 |
| virtual std::shared_ptr< T > | readData (const std::filesystem::path &filePath, MetaDataOwner *) |
|
void | addExtension (FileExtension ext) |
|
| DataReader (const DataReader &rhs)=default |
|
| DataReader (DataReader &&rhs) noexcept=default |
|
const std::vector< FileExtension > & | getExtensions () const |
| virtual std::any | getOption (std::string_view key) |
| | Query the value of an reader specific option.
|
|
DataReader & | operator= (const DataReader &that)=default |
|
DataReader & | operator= (DataReader &&that) noexcept=default |
|
template<typename T> |
| bool | readsType () const |
| virtual bool | setOption (std::string_view key, std::any value) |
| | Set reader specific options See the documentation of the specific reader for the available options.
|
|
| virtual bool | canRead (const std::type_index &index) const override |
|
| static void | checkExists (const std::filesystem::path &path) |
|
static std::filesystem::path | downloadAndCacheIfUrl (const std::filesystem::path &url) |
| static std::ifstream | open (const std::filesystem::path &path, std::ios_base::openmode mode=std::ios_base::in) |
|
static std::ifstream | openAndCacheIfUrl (const std::filesystem::path &path, std::ios_base::openmode mode=std::ios_base::in) |
| static std::string | readFileContents (const std::filesystem::path &path) |
|
std::vector< FileExtension > | extensions_ |
template<typename T>
class inviwo::DataReaderType< T >
Template base class for file readers designating what type of data object the reader returns.
◆ canRead()
template<typename T>
|
|
inlineoverrideprotectedvirtual |
◆ clone()
◆ readData() [1/2]
◆ readData() [2/2]
Optional overload that passed a MetaDataOwner to facilitate saving/loading state in the data reader the use is optional and the pointer can be null.
- See also
- RawVolumeReader
The documentation for this class was generated from the following file:
- include/inviwo/core/io/datareader.h