Inviwo 0.9.12-pre
Inviwo documentation
|
Template base class for file readers designating what type of data object the reader returns. More...
#include <datareader.h>
Public Member Functions | |
DataReaderType (const DataReaderType &rhs)=default | |
DataReaderType (DataReaderType &&rhs) noexcept=default | |
DataReaderType & | operator= (const DataReaderType &that)=default |
DataReaderType & | operator= (DataReaderType &&that) noexcept=default |
virtual DataReaderType * | clone () const override=0 |
virtual std::shared_ptr< T > | readData (const std::filesystem::path &filePath)=0 |
virtual std::shared_ptr< T > | readData (const std::filesystem::path &filePath, MetaDataOwner *) |
Public Member Functions inherited from inviwo::DataReader | |
DataReader (const DataReader &rhs)=default | |
DataReader (DataReader &&rhs) noexcept=default | |
DataReader & | operator= (const DataReader &that)=default |
DataReader & | operator= (DataReader &&that) noexcept=default |
const std::vector< FileExtension > & | getExtensions () const |
void | addExtension (FileExtension ext) |
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 std::any | getOption (std::string_view key) |
Query the value of an reader specific option. | |
template<typename T > | |
bool | readsType () const |
Protected Member Functions | |
virtual bool | canRead (const std::type_index &index) const override |
Protected Member Functions inherited from inviwo::DataReader | |
void | checkExists (const std::filesystem::path &path) const |
std::ifstream | open (const std::filesystem::path &path, std::ios_base::openmode mode=std::ios_base::in) const |
Additional Inherited Members | |
Protected Attributes inherited from inviwo::DataReader | |
std::vector< FileExtension > | extensions_ |
Template base class for file readers designating what type of data object the reader returns.
|
inlineoverrideprotectedvirtual |
Implements inviwo::DataReader.
|
overridepure virtual |
Implements inviwo::DataReader.
|
pure virtual |
Implemented in inviwo::CSVReader, inviwo::IvfSequenceVolumeReader, and inviwo::JSONDataFrameReader.
|
inlinevirtual |
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.
Reimplemented in inviwo::RawVolumeReader.