soma-io
5.1.2
|
Formats holder for each format of Cartograph object, used by Reader and Writer. More...
#include <soma-io/io/formatdictionary.h>
Static Public Member Functions | |
static void | registerFormat (const std::string &formatID, FormatReader< T > *format, const std::vector< std::string > &extensions) |
static void | registerFormat (const std::string &formatID, FormatWriter< T > *format, const std::vector< std::string > &extensions) |
static FormatReader< T > * | readFormat (const std::string &format) |
static FormatWriter< T > * | writeFormat (const std::string &format) |
static const std::multimap< std::string, std::string > & | readExtensions () |
static const std::multimap< std::string, std::string > & | writeExtensions () |
static std::set< std::string > | readFormats () |
static std::set< std::string > | writeFormats () |
static void | registerBaseFormats () |
builds base formats maps. More... | |
static void | init () |
Formats holder for each format of Cartograph object, used by Reader and Writer.
FormatDictionary is a plug-in mechanism to allow new formats to be registered.
It uses at lower level specific IO classes for each format (GisFormat for GIS, SpmReader for SPM, etc., and IO classes for other object types (meshes, buckets, textures, ...))
The standard carto/aims libraries include a set of already compiled Readers and writers.
If you need to use other types, you'll have to include soma-io/io/reader_d.h
and / or soma-io/io/writer_d.h
in order to have the template functions definitions, soma-io/io/reader.h
and soma-io/io/writer.h
are only the class declarations. In addition, you may want to specialize the registerBaseFormats() functions of specific FormatDictionary specializations.
Definition at line 75 of file formatdictionary.h.
|
static |
Definition at line 106 of file formatdictionary_d.h.
References carto::DataTypeCode< class >::name(), soma::IOObjectTypesDictionary::registerReadType(), and soma::IOObjectTypesDictionary::registerWriteType().
|
static |
Definition at line 91 of file formatdictionary_d.h.
Referenced by soma::Reader< T >::read().
|
static |
Definition at line 173 of file formatdictionary_d.h.
Referenced by soma::Reader< T >::read().
|
static |
Definition at line 200 of file formatdictionary_d.h.
Referenced by soma::Reader< T >::read().
|
static |
builds base formats maps.
The formats list is dynamically extensible, you can register your own whenever you want
Definition at line 126 of file formatdictionary_d.h.
|
static |
Definition at line 133 of file formatdictionary_d.h.
|
static |
Definition at line 153 of file formatdictionary_d.h.
|
static |
Definition at line 99 of file formatdictionary_d.h.
Referenced by soma::Writer< T >::write().
|
static |
Definition at line 187 of file formatdictionary_d.h.
Referenced by soma::Writer< T >::write().
|
static |
Definition at line 213 of file formatdictionary_d.h.