Abstract class for image metadata.
More...
#include <libmythmetadata/imagemetadata.h>
|
using | TagMap = QMultiMap< QString, QStringList > |
|
|
static ImageMetaData * | FromPicture (const QString &filePath) |
| Factory to retrieve metadata from pictures. More...
|
|
static ImageMetaData * | FromVideo (const QString &filePath) |
| Factory to retrieve metadata from videos. More...
|
|
static QString | ToString (const QString &name, const QString &label, const QString &value) |
| Encodes metadata into a string as <tag name><tag label><tag value> More...
|
|
static QStringList | FromString (const QString &str) |
| Decodes metadata name, label, value from a string. More...
|
|
static TagMap | ToMap (const QStringList &tags) |
| Creates a map of metadata tags as. More...
|
|
|
static const QString | kSeparator = "|-|" |
| Unique separator to delimit fields within a string. More...
|
|
Abstract class for image metadata.
Definition at line 99 of file imagemetadata.h.
◆ TagMap
◆ ~ImageMetaData()
virtual ImageMetaData::~ImageMetaData |
( |
| ) |
|
|
virtualdefault |
◆ ImageMetaData()
ImageMetaData::ImageMetaData |
( |
QString |
filePath | ) |
|
|
inlineexplicitprotected |
◆ Q_DECLARE_TR_FUNCTIONS()
◆ FromPicture()
ImageMetaData * ImageMetaData::FromPicture |
( |
const QString & |
filePath | ) |
|
|
static |
◆ FromVideo()
ImageMetaData * ImageMetaData::FromVideo |
( |
const QString & |
filePath | ) |
|
|
static |
◆ ToString()
static QString ImageMetaData::ToString |
( |
const QString & |
name, |
|
|
const QString & |
label, |
|
|
const QString & |
value |
|
) |
| |
|
inlinestatic |
◆ FromString()
static QStringList ImageMetaData::FromString |
( |
const QString & |
str | ) |
|
|
inlinestatic |
◆ ToMap()
Creates a map of metadata tags as.
- Parameters
-
tagStrings | List of strings containing encoded metadata |
- Returns
- multimap<key group, list<key, label, value>>
Definition at line 721 of file imagemetadata.cpp.
Referenced by InfoList::Display().
◆ IsValid()
virtual bool ImageMetaData::IsValid |
( |
| ) |
|
|
pure virtual |
◆ GetAllTags()
virtual QStringList ImageMetaData::GetAllTags |
( |
| ) |
|
|
pure virtual |
◆ GetOrientation()
virtual int ImageMetaData::GetOrientation |
( |
bool * |
exists = nullptr | ) |
|
|
pure virtual |
◆ GetOriginalDateTime()
virtual QDateTime ImageMetaData::GetOriginalDateTime |
( |
bool * |
exists = nullptr | ) |
|
|
pure virtual |
◆ GetComment()
virtual QString ImageMetaData::GetComment |
( |
bool * |
exists = nullptr | ) |
|
|
pure virtual |
◆ kSeparator
const QString ImageMetaData::kSeparator = "|-|" |
|
static |
Unique separator to delimit fields within a string.
Definition at line 109 of file imagemetadata.h.
◆ m_filePath
QString ImageMetaData::m_filePath |
|
protected |
The documentation for this class was generated from the following files: