Visitor template for flattening of MetadataMap vector values.
More...
#include <ome/files/MetadataMap.h>
Visitor template for flattening of MetadataMap vector values.
◆ MetadataMapFlattenVisitor()
Constructor.
- Parameters
-
map | the map in which to set flattened elements. |
key | the key being output. |
◆ operator()() [1/2]
template<typename T >
void ome::files::detail::MetadataMapFlattenVisitor::operator() |
( |
const std::vector< T > & |
c | ) |
const |
|
inline |
Output a vector value of arbitrary type.
Each value will be set as a separate entry of with the a #n
suffix added to the key, where n
is the index into the vector, indexed from 1. The suffix will be left zero-padded to the width of the largest suffix.
- Parameters
-
c | the container values to output. |
References ome::files::MetadataMap::set().
◆ operator()() [2/2]
template<typename T >
void ome::files::detail::MetadataMapFlattenVisitor::operator() |
( |
const T & |
v | ) |
const |
|
inline |
Output a scalar value of arbitrary type.
The value will be output as a separate line of the form "key = value"
.
- Parameters
-
References ome::files::MetadataMap::set().
The documentation for this struct was generated from the following file: