ImageJ metadata from IFD tags.
More...
#include <ome/files/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::files::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::files::tiff::IFD::getField(), ome::files::tiff::IMAGEDESCRIPTION, ome::files::tiff::IMAGEJ_META_DATA, ome::files::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::files::tiff::ImageJMetadata::parse_imagedescription |
( |
const std::string & |
description | ) |
|
|
static |
template<typename T >
void ome::files::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::files::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::files::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::files::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: