![]() |
aimsdata
5.0.5
Neuroimaging data handling
|
Low-level object IO format: each specific format has such a reader / writer. More...
#include <aims/io/fileFormat.h>
Public Member Functions | |
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. More... | |
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 More... | |
template<> | |
carto::GenericObject * | read (const std::string &, const carto::AllocatorContext &, carto::Object) |
Low-level object IO format: each specific format has such a reader / writer.
Definition at line 61 of file fileFormat.h.
|
virtual |
Definition at line 46 of file fileFormat_d.h.
|
inline |
Definition at line 46 of file baseFormats_genericobject.h.
|
pure virtual |
Implemented in aims::WavefrontMeshFormat< D, T >, aims::MniObjFormat, aims::Vrml1Format, aims::SomaIOAimsDataFormat< T >, aims::PovFormat< D >, aims::VolumeRefFormat< T >, aims::ImasVolFormat< T >, aims::GiftiTextureFormat< T >, aims::GraphVolumeFormat, aims::TriFormat, aims::BckMapFormat< T >, aims::GenesisFormat< T >, aims::MinfFormat< T >, aims::VolumeFormat< T >, aims::MeshFormat< D, T >, aims::BckFormat< T >, aims::TrmFormat, aims::SpmFormat< T >, aims::GraphBundlesFormat, aims::ArgFormat, and aims::GiftiMeshFormat< D, T >.
Referenced by aims::Reader< AimsData< int16_t > >::read().
|
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 in aims::SomaIOAimsDataFormat< T >, aims::VolumeRefFormat< T >, aims::GraphVolumeFormat, aims::MinfFormat< T >, aims::VolumeFormat< T >, aims::GraphBundlesFormat, and aims::ArgFormat.
Definition at line 52 of file fileFormat_d.h.
|
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 in aims::WavefrontMeshFormat< D, T >, aims::MniObjFormat, aims::Vrml1Format, aims::SomaIOAimsDataFormat< T >, aims::PovFormat< D >, aims::VolumeRefFormat< T >, aims::ImasVolFormat< T >, aims::GiftiTextureFormat< T >, aims::TriFormat, aims::BckMapFormat< T >, aims::MinfFormat< T >, aims::ArgFormat, aims::VolumeFormat< T >, aims::MeshFormat< D, T >, aims::BckFormat< T >, aims::TrmFormat, aims::SpmFormat< T >, and aims::GiftiMeshFormat< D, T >.
Definition at line 73 of file fileFormat_d.h.
Referenced by aims::Writer< T >::write().