EDLUnit
EDLUnit
Base class for all EDL entities.
#include <edlstorage.h>
Inherited by EDLDataset, EDLGroup
Public Functions
Name | |
---|---|
EDLUnit(EDLUnitKind kind, EDLUnit * parent =nullptr) | |
virtual | ~EDLUnit() |
EDLUnitKind | objectKind() const |
QString | objectKindString() const |
EDLUnit * | parent() const |
QString | name() const |
virtual bool | setName(const QString & name) |
QDateTime | timeCreated() const |
void | setTimeCreated(const QDateTime & time) |
QUuid | collectionId() const |
virtual void | setCollectionId(const QUuid & uuid) |
QString | collectionShortTag() const Get part of the long collection-id as a short tag in e.g. filenames. |
void | addAuthor(const EDLAuthor & author) |
QList< EDLAuthor > | authors() const |
QString | path() const |
void | setPath(const QString & path) |
QString | rootPath() const |
QHash< QString, QVariant > | attributes() const |
void | setAttributes(const QHash< QString, QVariant > & attributes) |
void | insertAttribute(const QString & key, const QVariant & value) |
virtual bool | save() |
QString | lastError() const |
QString | serializeManifest() |
QString | serializeAttributes() |
Protected Functions
Name | |
---|---|
void | setObjectKind(const EDLUnitKind & kind) |
void | setParent(EDLUnit * parent) |
void | setLastError(const QString & message) |
virtual void | setRootPath(const QString & root) |
void | setDataObjects(std::optional< EDLDataFile > dataFile, const QList< EDLDataFile > & auxDataFiles =QList< EDLDataFile >()) |
bool | saveManifest() |
bool | saveAttributes() |
QString | generatorId() const |
void | setGeneratorId(const QString & idString) |
Friends
Name | |
---|---|
class | EDLGroup |
Public Functions Documentation
function EDLUnit
explicit EDLUnit(
EDLUnitKind kind,
EDLUnit * parent =nullptr
)
function ~EDLUnit
virtual ~EDLUnit()
function objectKind
EDLUnitKind objectKind() const
function objectKindString
QString objectKindString() const
function parent
EDLUnit * parent() const
function name
QString name() const
function setName
virtual bool setName(
const QString & name
)
Reimplemented by: EDLGroup::setName
function timeCreated
QDateTime timeCreated() const
function setTimeCreated
void setTimeCreated(
const QDateTime & time
)
function collectionId
QUuid collectionId() const
function setCollectionId
virtual void setCollectionId(
const QUuid & uuid
)
Reimplemented by: EDLGroup::setCollectionId
function collectionShortTag
QString collectionShortTag() const
Get part of the long collection-id as a short tag in e.g. filenames.
Return: Collection ID fragment string for use as short tag
function addAuthor
void addAuthor(
const EDLAuthor & author
)
function authors
QList< EDLAuthor > authors() const
function path
QString path() const
function setPath
void setPath(
const QString & path
)
function rootPath
QString rootPath() const
function attributes
QHash< QString, QVariant > attributes() const
function setAttributes
void setAttributes(
const QHash< QString, QVariant > & attributes
)
function insertAttribute
void insertAttribute(
const QString & key,
const QVariant & value
)
function save
virtual bool save()
Reimplemented by: EDLDataset::save, EDLGroup::save
function lastError
QString lastError() const
function serializeManifest
QString serializeManifest()
function serializeAttributes
QString serializeAttributes()
Protected Functions Documentation
function setObjectKind
void setObjectKind(
const EDLUnitKind & kind
)
function setParent
void setParent(
EDLUnit * parent
)
function setLastError
void setLastError(
const QString & message
)
function setRootPath
virtual void setRootPath(
const QString & root
)
Reimplemented by: EDLGroup::setRootPath
function setDataObjects
void setDataObjects(
std::optional< EDLDataFile > dataFile,
const QList< EDLDataFile > & auxDataFiles =QList< EDLDataFile >()
)
function saveManifest
bool saveManifest()
function saveAttributes
bool saveAttributes()
function generatorId
QString generatorId() const
function setGeneratorId
void setGeneratorId(
const QString & idString
)
Friends
friend EDLGroup
friend class EDLGroup(
EDLGroup
);
Updated on 2024-11-06 at 17:10:29 +0000