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()
EDLUnitKindobjectKind() const
QStringobjectKindString() const
EDLUnit *parent() const
QStringname() const
virtual boolsetName(const QString & name)
QDateTimetimeCreated() const
voidsetTimeCreated(const QDateTime & time)
QUuidcollectionId() const
virtual voidsetCollectionId(const QUuid & uuid)
QStringcollectionShortTag() const
Get part of the long collection-id as a short tag in e.g. filenames.
voidaddAuthor(const EDLAuthor & author)
QList< EDLAuthor >authors() const
QStringpath() const
voidsetPath(const QString & path)
QStringrootPath() const
QHash< QString, QVariant >attributes() const
voidsetAttributes(const QHash< QString, QVariant > & attributes)
voidinsertAttribute(const QString & key, const QVariant & value)
virtual boolsave()
QStringlastError() const
QStringserializeManifest()
QStringserializeAttributes()

Protected Functions

Name
voidsetObjectKind(const EDLUnitKind & kind)
voidsetParent(EDLUnit * parent)
voidsetLastError(const QString & message)
virtual voidsetRootPath(const QString & root)
voidsetDataObjects(std::optional< EDLDataFile > dataFile, const QList< EDLDataFile > & auxDataFiles =QList< EDLDataFile >())
boolsaveManifest()
boolsaveAttributes()
QStringgeneratorId() const
voidsetGeneratorId(const QString & idString)

Friends

Name
classEDLGroup

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