ImageJ metadata from IFD tags.
More...
#include <ome/bioformats/tiff/ImageJMetadata.h>
|
template<typename T > |
void | parse_value (const std::string &key, T &value) |
| Parse a key's value into a given type. More...
|
|
void | parse_value (const std::string &key, bool &value) |
| Parse a key's value into a bool. More...
|
|
void | parse_value (const std::string &key, std::string &value) |
| Parse a key's value into a string. More...
|
|
|
static void | parse_value_error (const std::string &key, const std::string &value) |
| Throw an exception on failing to parse a particular key value. More...
|
|
ImageJ metadata from IFD tags.
ome::bioformats::tiff::ImageJMetadata::ImageJMetadata |
( |
const IFD & |
ifd | ) |
|
Construct from an IFD.
- Parameters
-
ifd | the IFD to parse the metadata from. |
- Exceptions
-
an | exception on parse errors. |
References channels, counts, data, finterval, frames, ome::bioformats::tiff::IFD::getField(), ome::bioformats::tiff::IMAGEDESCRIPTION, ome::bioformats::tiff::IMAGEJ_META_DATA, ome::bioformats::tiff::IMAGEJ_META_DATA_BYTE_COUNTS, images, loop, map, mode, parse_imagedescription(), parse_value(), slices, spacing, unit, xorigin, and yorigin.
std::map< std::string, std::string > ome::bioformats::tiff::ImageJMetadata::parse_imagedescription |
( |
const std::string & |
description | ) |
|
|
static |
template<typename T >
void ome::bioformats::tiff::ImageJMetadata::parse_value |
( |
const std::string & |
key, |
|
|
T & |
value |
|
) |
| |
|
inlineprotected |
Parse a key's value into a given type.
The string value of the given key will be parsed into the corresponding value type.
- Parameters
-
key | the key name. |
value | the value to store the key's parsed string value. |
- Exceptions
-
std::runtime_error | on parse errors. |
References parse_value_error().
Referenced by ImageJMetadata().
void ome::bioformats::tiff::ImageJMetadata::parse_value |
( |
const std::string & |
key, |
|
|
bool & |
value |
|
) |
| |
|
protected |
Parse a key's value into a bool.
The string value of the given key will be parsed into a bool type.
- Parameters
-
key | the key name. |
value | the value to store the key's parsed string value. |
- Exceptions
-
std::runtime_error | on parse errors. |
References map, and parse_value_error().
void ome::bioformats::tiff::ImageJMetadata::parse_value |
( |
const std::string & |
key, |
|
|
std::string & |
value |
|
) |
| |
|
protected |
Parse a key's value into a string.
The string value of the given key will be parsed into a string type.
- Parameters
-
key | the key name. |
value | the value to store the key's parsed string value. |
- Exceptions
-
std::runtime_error | on parse errors. |
References map.
void ome::bioformats::tiff::ImageJMetadata::parse_value_error |
( |
const std::string & |
key, |
|
|
const std::string & |
value |
|
) |
| |
|
staticprotected |
Throw an exception on failing to parse a particular key value.
- Parameters
-
key | the key name. |
value | the value which failed to parse. |
- Exceptions
-
Referenced by parse_value().
The documentation for this struct was generated from the following files: