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

#include <aims/io/baseFormats_genericobject.h>

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

Public Member Functions

virtual ~MinfFormat ()
 
virtual bool read (const std::string &filename, T &obj, const carto::AllocatorContext &context, carto::Object options)
 
virtual T * read (const std::string &filename, const carto::AllocatorContext &context, carto::Object options)
 Creates an object and reads it.
 
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
 
- Public Member Functions inherited from aims::FileFormat< T >
virtual ~FileFormat ()
 
carto::GenericObjectread (const std::string &, const carto::AllocatorContext &, carto::Object)
 

Detailed Description

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

Definition at line 56 of file baseFormats_genericobject.h.

Constructor & Destructor Documentation

◆ ~MinfFormat()

template<typename T>
virtual aims::MinfFormat< T >::~MinfFormat ( )
virtual

Member Function Documentation

◆ read() [1/2]

template<typename T>
virtual T * aims::MinfFormat< T >::read ( const std::string & filename,
const carto::AllocatorContext & context,
carto::Object options )
virtual

Creates an object and reads it.

The default implementation just calls the other read() function. The returned object may be deleted by the standard delete

Reimplemented from aims::FileFormat< T >.

◆ read() [2/2]

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

Implements aims::FileFormat< T >.

◆ write()

template<typename T>
virtual bool aims::MinfFormat< T >::write ( const std::string & ,
const T & ,
carto::Object options = carto::none() )
virtual

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

Reimplemented from aims::FileFormat< T >.

References carto::none().


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