aimsdata 6.0.0
Neuroimaging data handling
aims::GiftiTextureFormat< T > Class Template Reference

#include <aims/io/giftiformat.h>

Inheritance diagram for aims::GiftiTextureFormat< T >:
Collaboration diagram for aims::GiftiTextureFormat< T >:

Public Member Functions

virtual bool read (const std::string &filename, TimeTexture< T > &vol, const carto::AllocatorContext &context, carto::Object options)
 
virtual bool write (const std::string &filename, const TimeTexture< T > &vol, carto::Object options=carto::none())
 
const carto::Object options () const
 
void setOptions (carto::Object opt)
 
int getEncoding ()
 
void setEncoding (int enc)
 
- Public Member Functions inherited from aims::FileFormat< TimeTexture< T > >
carto::GenericObjectread (const std::string &, const carto::AllocatorContext &, carto::Object)
 
virtual ~FileFormat ()
 
virtual bool read (const std::string &filename, T &obj, const carto::AllocatorContext &context, carto::Object options)=0
 
virtual T * read (const std::string &filename, const carto::AllocatorContext &context, carto::Object options)
 Creates an object and reads it.
 
carto::GenericObjectread (const std::string &, const carto::AllocatorContext &, carto::Object)
 
virtual bool write (const std::string &, const T &, carto::Object options=carto::none())
 the base class has a default implementation which only returns false so if your new format only supports read operations, you won't have to bother about the write() function
 

Protected Attributes

std::string _filename
 
carto::Object _options
 
int _encoding
 

Detailed Description

template<typename T>
class aims::GiftiTextureFormat< T >

Definition at line 70 of file giftiformat.h.

Member Function Documentation

◆ getEncoding()

template<typename T>
int aims::GiftiTextureFormat< T >::getEncoding ( )
inline

Definition at line 84 of file giftiformat.h.

References _encoding.

◆ options()

template<typename T>
const carto::Object aims::GiftiTextureFormat< T >::options ( ) const
inline

Definition at line 81 of file giftiformat.h.

References _options.

Referenced by read(), and write().

◆ read()

template<typename T>
bool aims::GiftiTextureFormat< T >::read ( const std::string & filename,
TimeTexture< T > & vol,
const carto::AllocatorContext & context,
carto::Object options )
virtual

◆ setEncoding()

template<typename T>
void aims::GiftiTextureFormat< T >::setEncoding ( int enc)
inline

Definition at line 85 of file giftiformat.h.

References _encoding.

◆ setOptions()

template<typename T>
void aims::GiftiTextureFormat< T >::setOptions ( carto::Object opt)
inline

Definition at line 82 of file giftiformat.h.

References _options.

Referenced by read().

◆ write()

Member Data Documentation

◆ _encoding

template<typename T>
int aims::GiftiTextureFormat< T >::_encoding
protected

Definition at line 90 of file giftiformat.h.

Referenced by getEncoding(), and setEncoding().

◆ _filename

template<typename T>
std::string aims::GiftiTextureFormat< T >::_filename
protected

Definition at line 88 of file giftiformat.h.

◆ _options

template<typename T>
carto::Object aims::GiftiTextureFormat< T >::_options
protected

Definition at line 89 of file giftiformat.h.

Referenced by options(), and setOptions().


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