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 91 of file imagemetadata.h.
◆ TagMap
◆ ~ImageMetaData()
| virtual ImageMetaData::~ImageMetaData |
( |
| ) |
|
|
virtualdefault |
◆ ImageMetaData()
| ImageMetaData::ImageMetaData |
( |
QString |
filePath | ) |
|
|
inlineexplicitprotected |
◆ FromPicture()
| ImageMetaData * ImageMetaData::FromPicture |
( |
const QString & |
filePath | ) |
|
|
static |
◆ FromString()
| static QStringList ImageMetaData::FromString |
( |
const QString & |
str | ) |
|
|
inlinestatic |
◆ FromVideo()
| ImageMetaData * ImageMetaData::FromVideo |
( |
const QString & |
filePath | ) |
|
|
static |
◆ GetAllTags()
| virtual QStringList ImageMetaData::GetAllTags |
( |
| ) |
|
|
pure virtual |
◆ GetComment()
| virtual QString ImageMetaData::GetComment |
( |
bool * |
exists = nullptr | ) |
|
|
pure virtual |
◆ GetOrientation()
| virtual int ImageMetaData::GetOrientation |
( |
bool * |
exists = nullptr | ) |
|
|
pure virtual |
◆ GetOriginalDateTime()
| virtual QDateTime ImageMetaData::GetOriginalDateTime |
( |
bool * |
exists = nullptr | ) |
|
|
pure virtual |
◆ IsValid()
| virtual bool ImageMetaData::IsValid |
( |
| ) |
|
|
pure virtual |
◆ Q_DECLARE_TR_FUNCTIONS()
◆ 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 664 of file imagemetadata.cpp.
Referenced by InfoList::Display().
◆ ToString()
| static QString ImageMetaData::ToString |
( |
const QString & |
name, |
|
|
const QString & |
label, |
|
|
const QString & |
value |
|
) |
| |
|
inlinestatic |
◆ kSeparator
| const QString ImageMetaData::kSeparator = "|-|" |
|
static |
Unique separator to delimit fields within a string.
Definition at line 101 of file imagemetadata.h.
◆ m_filePath
| QString ImageMetaData::m_filePath |
|
protected |
The documentation for this class was generated from the following files: