ADM Document¶
-
class adm::Document : public std::enable_shared_from_this<Document>¶
Class representation of a whole ADM document.
Add ADM elements
If the ADM element was already added to the Document, it will not be added again.
Add an AudioProgramme.
Add an AudioContent.
Add an AudioObject.
Add an AudioPackFormat.
Add an AudioChannelFormat.
Add an AudioStreamFormat.
Add an AudioTrackFormat.
Add an AudioTrackUid.
Remove ADM elements
References from and to the ADM element will automatically be removed too.
Remove an AudioProgramme.
Remove an AudioContent.
Remove an AudioObject.
Remove an AudioPackFormat.
Remove an AudioChannelFormat.
Remove an AudioStreamFormat.
Remove an AudioTrackFormat.
Remove an AudioTrackUid.
Lookup ADM elements by its Id
Lookup the first ADM element with the given Id.
-
std::shared_ptr<AudioProgramme> lookup(const AudioProgrammeId &programmeId)¶
Lookup AudioProgramme using its id.
- Returns
shared_ptr
to the element,nullptr
if not found
-
std::shared_ptr<const AudioProgramme> lookup(const AudioProgrammeId &programmeId) const¶
Lookup AudioProgramme using its id.
- Returns
shared_ptr
to the element,nullptr
if not found
-
std::shared_ptr<AudioContent> lookup(const AudioContentId &contentId)¶
Lookup AudioContent using its id.
- Returns
shared_ptr
to the element,nullptr
if not found
-
std::shared_ptr<const AudioContent> lookup(const AudioContentId &contentId) const¶
Lookup AudioContent using its id.
- Returns
shared_ptr
to the element,nullptr
if not found
-
std::shared_ptr<AudioObject> lookup(const AudioObjectId &objectId)¶
Lookup AudioObject using its id.
- Returns
shared_ptr
to the element,nullptr
if not found
-
std::shared_ptr<const AudioObject> lookup(const AudioObjectId &objectId) const¶
Lookup AudioObject using its id.
- Returns
shared_ptr
to the element,nullptr
if not found
-
std::shared_ptr<AudioPackFormat> lookup(const AudioPackFormatId &packFormatId)¶
Lookup AudioPackFormat using its id.
- Returns
shared_ptr
to the element,nullptr
if not found
-
std::shared_ptr<const AudioPackFormat> lookup(const AudioPackFormatId &packFormatId) const¶
Lookup AudioPackFormat using its id.
- Returns
shared_ptr
to the element,nullptr
if not found
-
std::shared_ptr<AudioChannelFormat> lookup(const AudioChannelFormatId &channelFormatId)¶
Lookup AudioChannelFormat using its id.
- Returns
shared_ptr
to the element,nullptr
if not found
-
std::shared_ptr<const AudioChannelFormat> lookup(const AudioChannelFormatId &channelFormatId) const¶
Lookup AudioChannelFormat using its id.
- Returns
shared_ptr
to the element,nullptr
if not found
-
std::shared_ptr<AudioStreamFormat> lookup(const AudioStreamFormatId &streamFormatId)¶
Lookup AudioStreamFormat using its id.
- Returns
shared_ptr
to the element,nullptr
if not found
-
std::shared_ptr<const AudioStreamFormat> lookup(const AudioStreamFormatId &streamFormatId) const¶
Lookup AudioStreamFormat using its id.
- Returns
shared_ptr
to the element,nullptr
if not found
-
std::shared_ptr<AudioTrackFormat> lookup(const AudioTrackFormatId &trackFormatId)¶
Lookup AudioTrackFormat using its id.
- Returns
shared_ptr
to the element,nullptr
if not found
-
std::shared_ptr<const AudioTrackFormat> lookup(const AudioTrackFormatId &trackFormatId) const¶
Lookup AudioTrackFormat using its id.
- Returns
shared_ptr
to the element,nullptr
if not found
-
std::shared_ptr<AudioTrackUid> lookup(const AudioTrackUidId &trackUidId)¶
Lookup AudioTrackUid using its id.
- Returns
shared_ptr
to the element,nullptr
if not found
-
std::shared_ptr<const AudioTrackUid> lookup(const AudioTrackUidId &trackUidId) const¶
Lookup AudioTrackUid using its id.
- Returns
shared_ptr
to the element,nullptr
if not found