Inviwo  0.9.10.1
Inviwo documentation
inviwo::DataReaderType< T > Class Template Referenceabstract

Template base class for file readers designating what type of data object the reader returns. More...

#include <datareader.h>

+ Inheritance diagram for inviwo::DataReaderType< T >:

Public Member Functions

 DataReaderType (const DataReaderType &rhs)=default
 
 DataReaderType (DataReaderType &&rhs) noexcept=default
 
DataReaderTypeoperator= (const DataReaderType &that)=default
 
DataReaderTypeoperator= (DataReaderType &&that) noexcept=default
 
virtual DataReaderTypeclone () const =0
 
virtual std::shared_ptr< T > readData (const std::string &filePath)=0
 
virtual std::shared_ptr< T > readData (const std::string &filePath, MetaDataOwner *)
 
- Public Member Functions inherited from inviwo::DataReader
 DataReader (const DataReader &rhs)=default
 
 DataReader (DataReader &&rhs) noexcept=default
 
DataReaderoperator= (const DataReader &that)=default
 
DataReaderoperator= (DataReader &&that) noexcept=default
 
const std::vector< FileExtension > & getExtensions () const
 
void addExtension (FileExtension ext)
 

Detailed Description

template<typename T>
class inviwo::DataReaderType< T >

Template base class for file readers designating what type of data object the reader returns.

Member Function Documentation

◆ readData()

template<typename T>
virtual std::shared_ptr<T> inviwo::DataReaderType< T >::readData ( const std::string &  filePath,
MetaDataOwner  
)
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.

See also
RawVolumeReader

Reimplemented in inviwo::RawVolumeReader.


The documentation for this class was generated from the following file: