#include <soma-io/reader/jsonformatreader.h>
|
virtual carto::GenericObject * | createAndRead (carto::rc_ptr< DataSourceInfo > dsi, const AllocatorContext &context, carto::Object options) |
| Factory mode: creates an object and reads it. More...
|
|
virtual void | read (carto::GenericObject &obj, carto::rc_ptr< DataSourceInfo > dsi, const AllocatorContext &context, carto::Object options) |
|
virtual FormatReader< carto::GenericObject > * | clone () const |
| Duplicate the FormatReader. More...
|
|
virtual std::string | formatID () const |
| Format identifier (abstract). More...
|
|
virtual carto::GenericObject * | createAndRead (carto::Object header, carto::rc_ptr< DataSource > ds, const AllocatorContext &context, carto::Object options) |
|
virtual void | read (carto::GenericObject &obj, carto::Object header, const AllocatorContext &context, carto::Object options) |
|
virtual | ~FormatReader () |
|
virtual void | setupAndRead (carto::GenericObject &obj, carto::rc_ptr< DataSourceInfo > dsi, const AllocatorContext &context, carto::Object options) |
| Full reading procedure, for an already existing object. More...
|
|
virtual void | read (carto::GenericObject &obj, carto::rc_ptr< DataSourceInfo > dsi, const AllocatorContext &context, carto::Object options) |
| Reads part or all of the object obj . More...
|
|
virtual carto::rc_ptr< DataSourceInfo > | checkDataSourceInfo (carto::rc_ptr< DataSourceInfo > dsi, carto::Object options) |
| Checks that dsi has been identified with the matching format checker. More...
|
|
virtual carto::GenericObject * | create (carto::Object header, const AllocatorContext &context, carto::Object options) |
| create the object to be read, bind the allocation context. More...
|
|
virtual void | setup (carto::GenericObject &obj, carto::Object header, const AllocatorContext &context, carto::Object options) |
| setup an existing object (for resizing or reallocation for instance). More...
|
|
Definition at line 50 of file jsonformatreader.h.
◆ clone()
Duplicate the FormatReader.
Some FormatReader can contain data describing the data source or storage buffer, so must be cloned for each read. Note that, for now, the cloned instance does not need to have the same bound internal data, since it is cloned precisely to work on a different source/buffer. It just needs to be another instance of the same exact type.
Implements soma::FormatReader< carto::GenericObject >.
◆ createAndRead() [1/2]
◆ createAndRead() [2/2]
◆ formatID()
virtual std::string soma::JsonFormatReader::formatID |
( |
| ) |
const |
|
inlinevirtual |
◆ read() [1/2]
◆ read() [2/2]
The documentation for this class was generated from the following file: