soma-io  5.0.5
soma::MinfUtil Class Reference

Meta informations utilities. More...

#include <soma-io/utilities/minfutil.h>

Public Member Functions

virtual ~MinfUtil ()
 

Static Public Member Functions

static void filter (carto::Object header, carto::Object options=carto::none())
 header is filtered by checking existing properties. More...
 
static void updateFromSource (soma::DataSource *source, carto::Object header, carto::Object options=carto::none())
 header is updated from a data source. More...
 

Detailed Description

Meta informations utilities.

Definition at line 48 of file minfutil.h.

Constructor & Destructor Documentation

◆ ~MinfUtil()

virtual soma::MinfUtil::~MinfUtil ( )
inlinevirtual

Definition at line 51 of file minfutil.h.

References filter(), carto::none(), and updateFromSource().

Member Function Documentation

◆ filter()

static void soma::MinfUtil::filter ( carto::Object  header,
carto::Object  options = carto::none() 
)
static

header is filtered by checking existing properties.

Properties 'uuid' and 'resolutions_dimension' are removed unless options specify to keep them.

Available options:
"remove_uuid", if set to false, "uuid" property is kept (default is true)
"remove_resolutions_dimension", if set to false, "resolutions_dimension" property is kept (default is true)

Referenced by ~MinfUtil().

◆ updateFromSource()

static void soma::MinfUtil::updateFromSource ( soma::DataSource source,
carto::Object  header,
carto::Object  options = carto::none() 
)
static

header is updated from a data source.

Properties 'uuid' is updated unless options specify to skip it.

Available options:
"update_uuid", if set to false, "uuid" property update from source is skipped (default is true)

Referenced by ~MinfUtil().


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