A.I.M.S


aims::SomaIOAimsDataFormat< T > Class Template Reference

#include <aims/io/baseFormats_volume.h>

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

Public Member Functions

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

Detailed Description

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

Definition at line 97 of file baseFormats_volume.h.

Constructor & Destructor Documentation

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

Definition at line 278 of file baseFormats_volume_d.h.

Member Function Documentation

template<typename T >
bool aims::SomaIOAimsDataFormat< T >::read ( const std::string &  filename,
AimsData< T > &  obj,
const carto::AllocatorContext &  context,
carto::Object  options 
)
virtual
template<typename T >
AimsData< T > * aims::SomaIOAimsDataFormat< 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< AimsData< T > >.

Definition at line 346 of file baseFormats_volume_d.h.

References carto::DictionaryInterface::getProperty(), carto::Object::isNull(), carto::DictionaryInterface::setProperty(), and carto::Object::value().

template<class T >
bool aims::SomaIOAimsDataFormat< T >::write ( const std::string &  ,
const AimsData< 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< AimsData< T > >.

Definition at line 379 of file baseFormats_volume_d.h.

References carto::DictionaryInterface::getProperty(), carto::Object::isNull(), carto::DictionaryInterface::setProperty(), carto::Object::value(), and AimsData< T >::volume().


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