Tag Parser  6.4.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
Public Member Functions | Public Attributes | List of all members
Media::Mp4ExtendedFieldId Class Reference

The Mp4ExtendedFieldId specifies parameter for an extended field denoted via Mp4TagAtomIds::Extended. More...

#include <mp4tag.h>

Public Member Functions

 Mp4ExtendedFieldId (const char *mean=nullptr, const char *name=nullptr, bool updateOnly=false)
 Constructs a new instance with the specified parameter. More...
 
 Mp4ExtendedFieldId (KnownField field)
 Constructs a new instance for the specified field. More...
 
 operator bool () const
 Returns whether valid parameter are assigned. More...
 
bool matches (const Mp4TagField &field) const
 Returns whether the current parameter match the specified field. More...
 

Public Attributes

const char * mean
 mean parameter, usually Mp4TagExtendedMeanIds::iTunes More...
 
const char * name
 name parameter More...
 
bool updateOnly
 Whether only existing fields should be updated but no new extended field should be created. More...
 

Detailed Description

The Mp4ExtendedFieldId specifies parameter for an extended field denoted via Mp4TagAtomIds::Extended.

Definition at line 14 of file mp4tag.h.

Constructor & Destructor Documentation

◆ Mp4ExtendedFieldId() [1/2]

Media::Mp4ExtendedFieldId::Mp4ExtendedFieldId ( const char *  mean = nullptr,
const char *  name = nullptr,
bool  updateOnly = false 
)
inline

Constructs a new instance with the specified parameter.

Definition at line 33 of file mp4tag.h.

◆ Mp4ExtendedFieldId() [2/2]

Media::Mp4ExtendedFieldId::Mp4ExtendedFieldId ( KnownField  field)

Constructs a new instance for the specified field.

Remarks
The instance will be invalid if no extended field parameter for field are known.

Definition at line 26 of file mp4tag.cpp.

Member Function Documentation

◆ matches()

bool Media::Mp4ExtendedFieldId::matches ( const Mp4TagField field) const
inline

Returns whether the current parameter match the specified field.

Definition at line 50 of file mp4tag.h.

◆ operator bool()

Media::Mp4ExtendedFieldId::operator bool ( ) const
inline

Returns whether valid parameter are assigned.

Definition at line 42 of file mp4tag.h.

Member Data Documentation

◆ mean

const char* Media::Mp4ExtendedFieldId::mean

mean parameter, usually Mp4TagExtendedMeanIds::iTunes

Definition at line 23 of file mp4tag.h.

◆ name

const char* Media::Mp4ExtendedFieldId::name

name parameter

Definition at line 25 of file mp4tag.h.

◆ updateOnly

bool Media::Mp4ExtendedFieldId::updateOnly

Whether only existing fields should be updated but no new extended field should be created.

Definition at line 27 of file mp4tag.h.


The documentation for this class was generated from the following files: